Skip to content

Commit 08caa8c

Browse files
committed
improvement(corejs): upgrade core-js to version 3.x
Upgrade core-js to version 3.x to gain new featurs and bugfixes. Version 2.x is no longer maintained.
1 parent d18c458 commit 08caa8c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Diff for: babel.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ module.exports = api => {
2929
[
3030
'@babel/preset-env',
3131
{
32-
// currently, there are dependency resolution issues with older versions of vuepress. Once vuepress is upgraded, core-js can be moved to version 3
33-
corejs: 2,
32+
corejs: 3,
3433
useBuiltIns: 'entry'
3534
}
3635
],

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"babel-jest": "^26.0.1",
7171
"babel-loader": "^8.1.0",
7272
"commitizen": "^4.0.3",
73-
"core-js": "2",
73+
"core-js": "^3.6.5",
7474
"css-loader": "^4.2.0",
7575
"cz-conventional-changelog": "^3.0.2",
7676
"expect": "^26.2.0",

Diff for: yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4657,7 +4657,7 @@ core-js-compat@^3.6.2, core-js-compat@^3.6.5:
46574657
browserslist "^4.8.5"
46584658
semver "7.0.0"
46594659

4660-
core-js@2, core-js@^2.4.0, core-js@^2.5.0:
4660+
core-js@^2.4.0, core-js@^2.5.0:
46614661
version "2.6.11"
46624662
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c"
46634663
integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==

0 commit comments

Comments
 (0)