From f823a8cf5e8c284487c5c3efb7fb4b11ac0bb58f Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Wed, 1 Mar 2023 17:30:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BA=E5=AE=9Acorejs=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-swc/src/swcOptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {