Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/sucrase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following [Sucrase options](https://github.com/alangpierce/sucrase#transform
- `enableLegacyTypeScriptModuleInterop`
- `jsxFragmentPragma`
- `jsxPragma`
- `jsxRuntime`
- `production`
- `transforms`

Expand Down
1 change: 1 addition & 0 deletions packages/sucrase/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default function sucrase(opts = {}) {
transforms: opts.transforms,
jsxPragma: opts.jsxPragma,
jsxFragmentPragma: opts.jsxFragmentPragma,
jsxRuntime: opts.jsxRuntime,
enableLegacyTypeScriptModuleInterop: opts.enableLegacyTypeScriptModuleInterop,
enableLegacyBabel5ModuleInterop: opts.enableLegacyBabel5ModuleInterop,
production: opts.production,
Expand Down
1 change: 1 addition & 0 deletions packages/sucrase/test/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const config: RollupOptions = {
enableLegacyTypeScriptModuleInterop: true,
jsxFragmentPragma: 'React.fragment',
jsxPragma: 'React',
jsxRuntime: 'classic',
production: true,
disableESTransforms: true,
transforms: ['jsx']
Expand Down
1 change: 1 addition & 0 deletions packages/sucrase/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface RollupSucraseOptions
| 'transforms'
| 'jsxPragma'
| 'jsxFragmentPragma'
| 'jsxRuntime'
| 'enableLegacyTypeScriptModuleInterop'
| 'enableLegacyBabel5ModuleInterop'
| 'production'
Expand Down
Loading