File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed
dev-packages/rollup-utils
packages/feedback-screenshot Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function makeBaseBundleConfig(options) {
3232
3333 const aliasPlugin = makeAliasPlugin ( ) ;
3434 const nodeResolvePlugin = makeNodeResolvePlugin ( ) ;
35- const sucrasePlugin = makeSucrasePlugin ( ) ;
35+ const sucrasePlugin = makeSucrasePlugin ( options . sucrase ) ;
3636 const cleanupPlugin = makeCleanupPlugin ( ) ;
3737 const markAsBrowserBuildPlugin = makeBrowserBuildPlugin ( true ) ;
3838 const licensePlugin = makeLicensePlugin ( licenseTitle ) ;
Original file line number Diff line number Diff line change @@ -29,11 +29,12 @@ export function makeBaseNPMConfig(options = {}) {
2929 hasBundles = false ,
3030 packageSpecificConfig = { } ,
3131 addPolyfills = true ,
32+ sucrase = { } ,
3233 } = options ;
3334
3435 const aliasPlugin = makeAliasPlugin ( ) ;
3536 const nodeResolvePlugin = makeNodeResolvePlugin ( ) ;
36- const sucrasePlugin = makeSucrasePlugin ( { disableESTransforms : ! addPolyfills } ) ;
37+ const sucrasePlugin = makeSucrasePlugin ( { disableESTransforms : ! addPolyfills , ... sucrase } ) ;
3738 const debugBuildStatementReplacePlugin = makeDebugBuildStatementReplacePlugin ( ) ;
3839 const cleanupPlugin = makeCleanupPlugin ( ) ;
3940 const extractPolyfillsPlugin = makeExtractPolyfillsPlugin ( ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ const baseBundleConfig = makeBaseBundleConfig({
66 jsVersion : 'es6' ,
77 licenseTitle : '@sentry-internal/feedback-screenshot' ,
88 outputFileBase : ( ) => 'bundles/feedback-screenshot' ,
9+ sucrase : {
10+ jsxPragma : 'h' ,
11+ jsxFragmentPragma : 'Fragment' ,
12+ }
913} ) ;
1014
1115const builds = makeBundleConfigVariants ( baseBundleConfig ) ;
Original file line number Diff line number Diff line change @@ -12,5 +12,9 @@ export default makeNPMConfigVariants(
1212 preserveModules : false ,
1313 } ,
1414 } ,
15+ sucrase : {
16+ jsxPragma : 'h' ,
17+ jsxFragmentPragma : 'Fragment' ,
18+ }
1519 } ) ,
1620) ;
You can’t perform that action at this time.
0 commit comments