diff --git a/packages/babel-compiler/babel-compiler.js b/packages/babel-compiler/babel-compiler.js index 2cf561970d..7bfceb32d1 100644 --- a/packages/babel-compiler/babel-compiler.js +++ b/packages/babel-compiler/babel-compiler.js @@ -375,6 +375,7 @@ BCp.processOneFileForTarget = function (inputFile, source) { // Merge with app-level SWC config if (lastModifiedSwcConfig) { swcOptions = deepMerge(swcOptions, lastModifiedSwcConfig, [ + 'jsc.target', 'env.targets', 'module.type', ]);