diff --git a/packages/fes-plugin-swc/src/swcOptions.js b/packages/fes-plugin-swc/src/swcOptions.js index b4e14ad5..7fd4d533 100644 --- a/packages/fes-plugin-swc/src/swcOptions.js +++ b/packages/fes-plugin-swc/src/swcOptions.js @@ -17,7 +17,7 @@ export function buildSwcOptions(targets, config, isJsx, isTs, minify = false) { return memo; }, {}), mode: 'usage', - coreJs: '3', + coreJs: require('core-js/package.json').version, }, jsc: { parser: {