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

This commit is contained in:
qlin 2022-12-28 16:34:39 +08:00 committed by GitHub
parent 22000e4f9c
commit eee453b601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 7 deletions

View File

@ -49,7 +49,7 @@
"@fesjs/plugin-request": "^3.0.0-rc.3", "@fesjs/plugin-request": "^3.0.0-rc.3",
"@fesjs/builder-webpack": "^3.0.0-rc.1", "@fesjs/builder-webpack": "^3.0.0-rc.1",
"vue": "^3.2.37", "vue": "^3.2.37",
"core-js": "^3.26.1" "core-js": "^3.27.0"
}, },
"private": true "private": true
} }

View File

@ -54,7 +54,7 @@
"@fesjs/fes-design": "^0.7.9", "@fesjs/fes-design": "^0.7.9",
"@fesjs/builder-webpack": "^3.0.0-rc.0", "@fesjs/builder-webpack": "^3.0.0-rc.0",
"vue": "^3.2.45", "vue": "^3.2.45",
"core-js": "^3.26.1" "core-js": "^3.27.0"
}, },
"private": true "private": true
} }

View File

@ -43,7 +43,7 @@
}, },
"peerDependencies": { "peerDependencies": {
"@fesjs/fes": "3.0.0-rc.2", "@fesjs/fes": "3.0.0-rc.2",
"core-js": "^3.19.2" "core-js": "^3.27.0"
}, },
"typings": "./types.d.ts" "typings": "./types.d.ts"
} }

View File

@ -64,6 +64,6 @@
}, },
"peerDependencies": { "peerDependencies": {
"@fesjs/fes": "3.0.0-rc.2", "@fesjs/fes": "3.0.0-rc.2",
"core-js": "^3.19.2" "core-js": "^3.27.0"
} }
} }

View File

@ -8,7 +8,7 @@ function getBabelOpts({ cwd, targets, config, presetOpts }) {
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

@ -45,6 +45,7 @@
"@fesjs/plugin-icon": "^3.0.0-rc.0", "@fesjs/plugin-icon": "^3.0.0-rc.0",
"@fesjs/plugin-request": "^3.0.0-rc.0", "@fesjs/plugin-request": "^3.0.0-rc.0",
"@fesjs/builder-vite": "^3.0.0-rc.1", "@fesjs/builder-vite": "^3.0.0-rc.1",
"core-js": "^3.27.0",
"vue": "^3.2.37" "vue": "^3.2.37"
}, },
"private": true "private": true

View File

@ -60,6 +60,7 @@
"@fesjs/plugin-sass": "^3.0.0-rc.0", "@fesjs/plugin-sass": "^3.0.0-rc.0",
"@fesjs/plugin-vuex": "^3.0.0-rc.0", "@fesjs/plugin-vuex": "^3.0.0-rc.0",
"@fesjs/plugin-windicss": "^3.0.0-rc.0", "@fesjs/plugin-windicss": "^3.0.0-rc.0",
"core-js": "^3.27.0",
"cssnano": "^5.1.12", "cssnano": "^5.1.12",
"pinia": "^2.0.11", "pinia": "^2.0.11",
"vue": "^3.2.37", "vue": "^3.2.37",

View File

@ -59,6 +59,7 @@
"@fesjs/plugin-pinia": "^3.0.0-rc.0", "@fesjs/plugin-pinia": "^3.0.0-rc.0",
"@fesjs/plugin-watermark": "^3.0.0-rc.0", "@fesjs/plugin-watermark": "^3.0.0-rc.0",
"@fesjs/fes-design": "^0.7.0", "@fesjs/fes-design": "^0.7.0",
"core-js": "^3.27.0",
"vue": "^3.2.37", "vue": "^3.2.37",
"vuex": "^4.0.0", "vuex": "^4.0.0",
"pinia": "^2.0.11" "pinia": "^2.0.11"

View File

@ -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" resolved "https://registry.npmmirror.com/core-js/-/core-js-3.26.1.tgz#7a9816dabd9ee846c1c0fe0e8fcad68f3709134e"
integrity sha512-21491RRQVzUn0GGM9Z1Jrpr6PNPxPi+Za8OM9q4tksTSnlbXXGKK1nXNg/QvwFYettXvSX6zWKCtHHfjN4puyA== 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: core-util-is@1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" resolved "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"