File tree 4 files changed +11
-2
lines changed
dev-packages/rollup-utils
packages/feedback-screenshot 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) {
32
32
33
33
const aliasPlugin = makeAliasPlugin ( ) ;
34
34
const nodeResolvePlugin = makeNodeResolvePlugin ( ) ;
35
- const sucrasePlugin = makeSucrasePlugin ( ) ;
35
+ const sucrasePlugin = makeSucrasePlugin ( options . sucrase ) ;
36
36
const cleanupPlugin = makeCleanupPlugin ( ) ;
37
37
const markAsBrowserBuildPlugin = makeBrowserBuildPlugin ( true ) ;
38
38
const licensePlugin = makeLicensePlugin ( licenseTitle ) ;
Original file line number Diff line number Diff line change @@ -29,11 +29,12 @@ export function makeBaseNPMConfig(options = {}) {
29
29
hasBundles = false ,
30
30
packageSpecificConfig = { } ,
31
31
addPolyfills = true ,
32
+ sucrase = { } ,
32
33
} = options ;
33
34
34
35
const aliasPlugin = makeAliasPlugin ( ) ;
35
36
const nodeResolvePlugin = makeNodeResolvePlugin ( ) ;
36
- const sucrasePlugin = makeSucrasePlugin ( { disableESTransforms : ! addPolyfills } ) ;
37
+ const sucrasePlugin = makeSucrasePlugin ( { disableESTransforms : ! addPolyfills , ... sucrase } ) ;
37
38
const debugBuildStatementReplacePlugin = makeDebugBuildStatementReplacePlugin ( ) ;
38
39
const cleanupPlugin = makeCleanupPlugin ( ) ;
39
40
const extractPolyfillsPlugin = makeExtractPolyfillsPlugin ( ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ const baseBundleConfig = makeBaseBundleConfig({
6
6
jsVersion : 'es6' ,
7
7
licenseTitle : '@sentry-internal/feedback-screenshot' ,
8
8
outputFileBase : ( ) => 'bundles/feedback-screenshot' ,
9
+ sucrase : {
10
+ jsxPragma : 'h' ,
11
+ jsxFragmentPragma : 'Fragment' ,
12
+ }
9
13
} ) ;
10
14
11
15
const builds = makeBundleConfigVariants ( baseBundleConfig ) ;
Original file line number Diff line number Diff line change @@ -12,5 +12,9 @@ export default makeNPMConfigVariants(
12
12
preserveModules : false ,
13
13
} ,
14
14
} ,
15
+ sucrase : {
16
+ jsxPragma : 'h' ,
17
+ jsxFragmentPragma : 'Fragment' ,
18
+ }
15
19
} ) ,
16
20
) ;
You can’t perform that action at this time.
0 commit comments