diff --git a/src/transpilers/swc.ts b/src/transpilers/swc.ts index 89e9bd496..55a0a4f80 100644 --- a/src/transpilers/swc.ts +++ b/src/transpilers/swc.ts @@ -149,6 +149,7 @@ export function createSwcOptions( jsx, jsxFactory, jsxFragmentFactory, + jsxImportSource, strict, alwaysStrict, noImplicitUseStrict, @@ -246,6 +247,7 @@ export function createSwcOptions( pragma: jsxFactory!, pragmaFrag: jsxFragmentFactory!, runtime: jsxRuntime, + importSource: jsxImportSource, } as swcTypes.ReactConfig, }, keepClassNames,