diff --git a/packages/create-fes-app/templates/app/h5/package.json b/packages/create-fes-app/templates/app/h5/package.json index dbe6dd11..7b91434e 100644 --- a/packages/create-fes-app/templates/app/h5/package.json +++ b/packages/create-fes-app/templates/app/h5/package.json @@ -49,7 +49,7 @@ "@fesjs/plugin-request": "^3.0.0-rc.3", "@fesjs/builder-webpack": "^3.0.0-rc.1", "vue": "^3.2.37", - "core-js": "^3.26.1" + "core-js": "^3.27.0" }, "private": true } \ No newline at end of file diff --git a/packages/create-fes-app/templates/app/pc/package.json b/packages/create-fes-app/templates/app/pc/package.json index 28ac9f23..1eff9605 100644 --- a/packages/create-fes-app/templates/app/pc/package.json +++ b/packages/create-fes-app/templates/app/pc/package.json @@ -54,7 +54,7 @@ "@fesjs/fes-design": "^0.7.9", "@fesjs/builder-webpack": "^3.0.0-rc.0", "vue": "^3.2.45", - "core-js": "^3.26.1" + "core-js": "^3.27.0" }, "private": true } \ No newline at end of file diff --git a/packages/fes-builder-vite/package.json b/packages/fes-builder-vite/package.json index f8366d26..870165d1 100644 --- a/packages/fes-builder-vite/package.json +++ b/packages/fes-builder-vite/package.json @@ -43,7 +43,7 @@ }, "peerDependencies": { "@fesjs/fes": "3.0.0-rc.2", - "core-js": "^3.19.2" + "core-js": "^3.27.0" }, "typings": "./types.d.ts" -} +} \ No newline at end of file diff --git a/packages/fes-builder-webpack/package.json b/packages/fes-builder-webpack/package.json index 8dc135b4..c04ff76a 100644 --- a/packages/fes-builder-webpack/package.json +++ b/packages/fes-builder-webpack/package.json @@ -64,6 +64,6 @@ }, "peerDependencies": { "@fesjs/fes": "3.0.0-rc.2", - "core-js": "^3.19.2" + "core-js": "^3.27.0" } -} +} \ No newline at end of file diff --git a/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/getBabelOpts.js b/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/getBabelOpts.js index e333e7d9..913caa69 100644 --- a/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/getBabelOpts.js +++ b/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/getBabelOpts.js @@ -8,7 +8,7 @@ function getBabelOpts({ cwd, targets, config, presetOpts }) { targets, useBuiltIns: 'usage', corejs: { - version: 3, + version: require('core-js/package.json').version, proposals: true, }, modules: false, diff --git a/packages/fes-template-h5/package.json b/packages/fes-template-h5/package.json index 6b5736bb..fa1f66ba 100644 --- a/packages/fes-template-h5/package.json +++ b/packages/fes-template-h5/package.json @@ -45,6 +45,7 @@ "@fesjs/plugin-icon": "^3.0.0-rc.0", "@fesjs/plugin-request": "^3.0.0-rc.0", "@fesjs/builder-vite": "^3.0.0-rc.1", + "core-js": "^3.27.0", "vue": "^3.2.37" }, "private": true diff --git a/packages/fes-template-vite/package.json b/packages/fes-template-vite/package.json index 409393d0..dff8305c 100644 --- a/packages/fes-template-vite/package.json +++ b/packages/fes-template-vite/package.json @@ -60,6 +60,7 @@ "@fesjs/plugin-sass": "^3.0.0-rc.0", "@fesjs/plugin-vuex": "^3.0.0-rc.0", "@fesjs/plugin-windicss": "^3.0.0-rc.0", + "core-js": "^3.27.0", "cssnano": "^5.1.12", "pinia": "^2.0.11", "vue": "^3.2.37", diff --git a/packages/fes-template/package.json b/packages/fes-template/package.json index 07c383a6..1b69780d 100644 --- a/packages/fes-template/package.json +++ b/packages/fes-template/package.json @@ -59,6 +59,7 @@ "@fesjs/plugin-pinia": "^3.0.0-rc.0", "@fesjs/plugin-watermark": "^3.0.0-rc.0", "@fesjs/fes-design": "^0.7.0", + "core-js": "^3.27.0", "vue": "^3.2.37", "vuex": "^4.0.0", "pinia": "^2.0.11" diff --git a/yarn.lock b/yarn.lock index 8feaf7ea..1c975758 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4525,6 +4525,11 @@ core-js@^3.26.1, core-js@^3.6.1: resolved "https://registry.npmmirror.com/core-js/-/core-js-3.26.1.tgz#7a9816dabd9ee846c1c0fe0e8fcad68f3709134e" integrity sha512-21491RRQVzUn0GGM9Z1Jrpr6PNPxPi+Za8OM9q4tksTSnlbXXGKK1nXNg/QvwFYettXvSX6zWKCtHHfjN4puyA== +core-js@^3.27.0: + version "3.27.0" + resolved "https://registry.npmmirror.com/core-js/-/core-js-3.27.0.tgz#a343bc614f29d9dcffa7616e65e10f9001cdd332" + integrity sha512-wY6cKosevs430KRkHUIsvepDXHGjlXOZO3hYXNyqpD6JvB0X28aXyv0t1Y1vZMwE7SoKmtfa6IASHCPN52FwBQ== + core-util-is@1.0.2: version "1.0.2" resolved "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"