Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transform typescript custom jsx fragment support #1945

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/plugin-transform-typescript.md
Expand Up @@ -72,6 +72,14 @@ Replace the function used when compiling JSX expressions.

This is so that we know that the import is not a type import, and should not be removed

### `jsxPragmaFrag`

`string`, defaults to `React.Fragment`

Replace the function used when compiling JSX fragment expressions.

This is so that we know that the import is not a type import, and should not be removed

[const_enum]: https://www.typescriptlang.org/docs/handbook/enums.html#const-enums
[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html
[exin]: https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require
Expand Down