fix(webpack): always resolve core-js to v3 (#5307)

This commit is contained in:
Pooya Parsa 2019-03-21 15:18:37 +03:30 committed by GitHub
parent aa61deadf8
commit 65c1f86ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 4 deletions

View File

@ -60,7 +60,7 @@
"@nuxt/loading-screen": "^0.1.2",
"@nuxt/opencollective": "^0.2.1",
"@nuxt/webpack": "2.4.5",
"core-js": "3",
"core-js": "^3.0.0",
"regenerator-runtime": "^0.13.2"
},
"engines": {

View File

@ -19,7 +19,8 @@
"@babel/runtime": "^7.4.2",
"@babel/runtime-corejs3": "^7.4.2",
"@vue/babel-preset-jsx": "^1.0.0-beta.2",
"core-js": "3"
"core-js": "^3.0.0",
"core-js-compat": "^3.0.0"
},
"publishConfig": {
"access": "public"

View File

@ -17,6 +17,7 @@
"caniuse-lite": "^1.0.30000951",
"chalk": "^2.4.2",
"consola": "^2.5.7",
"core-js": "^3.0.0",
"css-loader": "^2.1.1",
"cssnano": "^4.1.10",
"eventsource-polyfill": "^0.9.6",

View File

@ -188,7 +188,8 @@ export default class WebpackBaseConfig {
'@': path.join(srcDir),
'@@': path.join(rootDir),
[assetsDir]: path.join(srcDir, assetsDir),
[staticDir]: path.join(srcDir, staticDir)
[staticDir]: path.join(srcDir, staticDir),
'core-js': path.dirname(require.resolve('core-js/package.json'))
}
}

View File

@ -3519,7 +3519,7 @@ core-js-pure@3.0.0, core-js-pure@^3.0.0:
resolved "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.0.0.tgz#a5679adb4875427c8c0488afc93e6f5b7125859b"
integrity sha512-yPiS3fQd842RZDgo/TAKGgS0f3p2nxssF1H65DIZvZv0Od5CygP8puHXn3IQiM/39VAvgCbdaMQpresrbGgt9g==
core-js@3, core-js@3.0.0, core-js@^3.0.0:
core-js@3.0.0, core-js@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/core-js/-/core-js-3.0.0.tgz#a8dbfa978d29bfc263bfb66c556d0ca924c28957"
integrity sha512-WBmxlgH2122EzEJ6GH8o9L/FeoUKxxxZ6q6VUxoTlsE4EvbTWKJb447eyVxTEuq0LpXjlq/kCB2qgBvsYRkLvQ==