fix: 解决 core-js 版本问题 (#165)

This commit is contained in:
qlin 2022-12-28 16:39:59 +08:00 committed by GitHub
parent 29a3a6b855
commit a1e1bb7b04
5 changed files with 12 additions and 7 deletions

View File

@ -48,7 +48,7 @@
"@fesjs/plugin-icon": "^2.0.0", "@fesjs/plugin-icon": "^2.0.0",
"@fesjs/plugin-request": "^2.0.0", "@fesjs/plugin-request": "^2.0.0",
"vue": "^3.2.37", "vue": "^3.2.37",
"core-js": "^3.8.3" "core-js": "^3.27.0"
}, },
"private": true "private": true
} }

View File

@ -53,7 +53,7 @@
"@fesjs/plugin-enums": "^2.0.0", "@fesjs/plugin-enums": "^2.0.0",
"@fesjs/fes-design": "^0.5.0", "@fesjs/fes-design": "^0.5.0",
"vue": "^3.2.37", "vue": "^3.2.37",
"core-js": "^3.8.3" "core-js": "^3.27.0"
}, },
"private": true "private": true
} }

View File

@ -47,7 +47,7 @@
"connect-history-api-fallback": "^1.6.0", "connect-history-api-fallback": "^1.6.0",
"cookie-parser": "^1.4.5", "cookie-parser": "^1.4.5",
"copy-webpack-plugin": "^10.2.4", "copy-webpack-plugin": "^10.2.4",
"core-js": "^3.8.3", "core-js": "^3.27.0",
"css-loader": "^5.0.1", "css-loader": "^5.0.1",
"css-minimizer-webpack-plugin": "^3.0.0", "css-minimizer-webpack-plugin": "^3.0.0",
"envinfo": "^7.7.3", "envinfo": "^7.7.3",
@ -74,6 +74,6 @@
"webpackbar": "^5.0.0-3" "webpackbar": "^5.0.0-3"
}, },
"peerDependencies": { "peerDependencies": {
"core-js": "^3.8.3" "core-js": "^3.27.0"
} }
} }

View File

@ -15,7 +15,7 @@ function getBabelOpts({
targets, targets,
useBuiltIns: 'usage', useBuiltIns: 'usage',
corejs: { corejs: {
version: 3, version: require('core-js/package.json').version,
proposals: true proposals: true
}, },
modules: false modules: false

View File

@ -5255,7 +5255,12 @@ core-js-compat@^3.25.1:
dependencies: dependencies:
browserslist "^4.21.4" browserslist "^4.21.4"
core-js@^3.6.1, core-js@^3.8.3: 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-js@^3.6.1:
version "3.25.3" version "3.25.3"
resolved "https://registry.npmmirror.com/core-js/-/core-js-3.25.3.tgz#cbc2be50b5ddfa7981837bd8c41639f27b166593" resolved "https://registry.npmmirror.com/core-js/-/core-js-3.25.3.tgz#cbc2be50b5ddfa7981837bd8c41639f27b166593"
integrity sha512-y1hvKXmPHvm5B7w4ln1S4uc9eV/O5+iFExSRUimnvIph11uaizFR8LFMdONN8hG3P2pipUfX4Y/fR8rAEtcHcQ== integrity sha512-y1hvKXmPHvm5B7w4ln1S4uc9eV/O5+iFExSRUimnvIph11uaizFR8LFMdONN8hG3P2pipUfX4Y/fR8rAEtcHcQ==