File tree Expand file tree Collapse file tree
packages/repack/src/loaders/babelSwcLoader Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,9 +77,7 @@ function getTransformReactDevelopmentConfig(
7777
7878function getTransformReactRuntimeConfig (
7979 swcConfig : SwcLoaderOptions ,
80- reactRuntimeConfig : Record < string , any > = {
81- runtime : 'automatic' ,
82- }
80+ reactRuntimeConfig : Record < string , any > = { }
8381) : SwcLoaderOptions {
8482 return {
8583 ...swcConfig ,
@@ -89,12 +87,8 @@ function getTransformReactRuntimeConfig(
8987 ...swcConfig . jsc ?. transform ,
9088 react : {
9189 ...swcConfig . jsc ?. transform ?. react ,
92- runtime :
93- reactRuntimeConfig . runtime ??
94- swcConfig . jsc ?. transform ?. react ?. runtime ,
95- importSource :
96- reactRuntimeConfig . importSource ??
97- swcConfig . jsc ?. transform ?. react ?. importSource ,
90+ runtime : reactRuntimeConfig . runtime ?? 'automatic' ,
91+ importSource : reactRuntimeConfig . importSource ?? 'react' ,
9892 } ,
9993 } ,
10094 } ,
You can’t perform that action at this time.
0 commit comments