Skip to content

Commit cc869b9

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 ee2140d commit cc869b9

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
@@ -73,7 +73,7 @@
7373
"babel-jest": "^26.0.1",
7474
"babel-loader": "^8.1.0",
7575
"commitizen": "^4.0.3",
76-
"core-js": "2",
76+
"core-js": "^3.6.5",
7777
"css-loader": "^4.2.0",
7878
"cz-conventional-changelog": "^3.0.2",
7979
"expect": "^26.2.0",

Diff for: yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4669,7 +4669,7 @@ core-js-compat@^3.6.2, core-js-compat@^3.6.5:
46694669
browserslist "^4.8.5"
46704670
semver "7.0.0"
46714671

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

0 commit comments

Comments
 (0)