aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-03 01:27:16 +0300
committerGravatar Vitaly Takmazov2019-04-03 01:27:16 +0300
commitcebeca61c4c11d8d83afab5de7f4c3f90588029e (patch)
treebf3a67199c03a4e601430eb893fb85fce0cda651
parent25d830af2cb601f55bfa6a4064801bc5ba2f3a9d (diff)
@babel/polyfill -> core-js@3
-rw-r--r--package.json4
-rw-r--r--webpack.config.js26
-rw-r--r--yarn.lock15
3 files changed, 17 insertions, 28 deletions
diff --git a/package.json b/package.json
index bf5725a2..e35f605c 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
[
"@babel/preset-env",
{
+ "corejs": 3,
"useBuiltIns": "usage"
}
]
@@ -25,6 +26,7 @@
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"babel-loader": "^8.0.5",
+ "core-js": "^3.0.0",
"css-loader": "^2.1.1",
"eslint": "^5.16.0",
"eslint-loader": "^2.1.2",
@@ -33,6 +35,7 @@
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.6.0",
+ "regenerator-runtime": "^0.13.2",
"style-loader": "^0.23.1",
"stylelint": "^9.10.1",
"stylelint-config-standard": "^18.2.0",
@@ -42,7 +45,6 @@
"webpack-cli": "^3.3.0"
},
"dependencies": {
- "@babel/polyfill": "^7.4.3",
"classlist.js": "^1.1.20150312",
"element-closest": "3.0.1",
"evil-icons": "^1.10.1",
diff --git a/webpack.config.js b/webpack.config.js
index 1075a46d..dcb55e0f 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -8,19 +8,19 @@ module.exports = (env, argv) => {
devtool: dev ? 'source-map' : false,
entry: {
'scripts': [
- 'core-js/modules/es6.array.index-of',
- 'core-js/modules/es6.array.iterator',
- 'core-js/modules/es6.array.map',
- 'core-js/modules/es6.function.name',
- 'core-js/modules/es6.object.create',
- 'core-js/modules/es6.object.define-property',
- 'core-js/modules/es6.object.keys',
- 'core-js/modules/es6.object.set-prototype-of',
- 'core-js/modules/es6.promise',
- 'core-js/modules/es6.regexp.split',
- 'core-js/modules/es6.symbol',
- 'core-js/modules/es6.weak-map',
- 'core-js/modules/web.dom.iterable',
+ 'core-js/modules/es.array.index-of',
+ 'core-js/modules/es.array.iterator',
+ 'core-js/modules/es.array.map',
+ 'core-js/modules/es.function.name',
+ 'core-js/modules/es.object.create',
+ 'core-js/modules/es.object.define-property',
+ 'core-js/modules/es.object.keys',
+ 'core-js/modules/es.object.set-prototype-of',
+ 'core-js/modules/es.promise',
+ 'core-js/modules/es.string.split',
+ 'core-js/modules/es.symbol',
+ 'core-js/modules/es.weak-map',
+ 'core-js/modules/web.dom-collections.iterator',
'url-polyfill',
'whatwg-fetch',
__dirname + '/src/main/assets/scripts.js',
diff --git a/yarn.lock b/yarn.lock
index 8ac8d67e..75cde928 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -654,14 +654,6 @@
"@babel/helper-regex" "^7.4.3"
regexpu-core "^4.5.4"
-"@babel/polyfill@^7.4.3":
- version "7.4.3"
- resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.4.3.tgz#332dc6f57b718017c3a8b37b4eea8aa6eeac1187"
- integrity sha512-rkv8WIvJshA5Ev8iNMGgz5WZkRtgtiPexiT7w5qevGTuT7ZBfM3de9ox1y9JR5/OXb/sWGBbWlHNa7vQKqku3Q==
- dependencies:
- core-js "^2.6.5"
- regenerator-runtime "^0.13.2"
-
"@babel/preset-env@^7.4.3":
version "7.4.3"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.4.3.tgz#e71e16e123dc0fbf65a52cbcbcefd072fbd02880"
@@ -1920,16 +1912,11 @@ core-js-pure@3.0.0:
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.0.0.tgz#a5679adb4875427c8c0488afc93e6f5b7125859b"
integrity sha512-yPiS3fQd842RZDgo/TAKGgS0f3p2nxssF1H65DIZvZv0Od5CygP8puHXn3IQiM/39VAvgCbdaMQpresrbGgt9g==
-core-js@3.0.0:
+core-js@3.0.0, core-js@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.0.0.tgz#a8dbfa978d29bfc263bfb66c556d0ca924c28957"
integrity sha512-WBmxlgH2122EzEJ6GH8o9L/FeoUKxxxZ6q6VUxoTlsE4EvbTWKJb447eyVxTEuq0LpXjlq/kCB2qgBvsYRkLvQ==
-core-js@^2.6.5:
- version "2.6.5"
- resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.5.tgz#44bc8d249e7fb2ff5d00e0341a7ffb94fbf67895"
- integrity sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==
-
core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"