Frontend: Upgrade to core-js (replaces babel/polyfill)

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2019-12-05 03:13:42 +01:00
parent 309317d23d
commit 1f6e55cfd8
4 changed files with 24 additions and 4 deletions

View file

@ -1701,6 +1701,13 @@
"requires": { "requires": {
"core-js": "^2.6.5", "core-js": "^2.6.5",
"regenerator-runtime": "^0.13.2" "regenerator-runtime": "^0.13.2"
},
"dependencies": {
"core-js": {
"version": "2.6.10",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz",
"integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA=="
}
} }
}, },
"@babel/preset-env": { "@babel/preset-env": {
@ -2930,6 +2937,11 @@
"source-map-support": "^0.4.15" "source-map-support": "^0.4.15"
}, },
"dependencies": { "dependencies": {
"core-js": {
"version": "2.6.10",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz",
"integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA=="
},
"source-map-support": { "source-map-support": {
"version": "0.4.18", "version": "0.4.18",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",
@ -2949,6 +2961,11 @@
"regenerator-runtime": "^0.11.0" "regenerator-runtime": "^0.11.0"
}, },
"dependencies": { "dependencies": {
"core-js": {
"version": "2.6.10",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz",
"integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA=="
},
"regenerator-runtime": { "regenerator-runtime": {
"version": "0.11.1", "version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
@ -4023,9 +4040,9 @@
} }
}, },
"core-js": { "core-js": {
"version": "2.6.5", "version": "3.4.7",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.4.7.tgz",
"integrity": "sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==" "integrity": "sha512-qaPVGw30J1wQ0GR3GvoPqlGf9GZfKKF4kFC7kiHlcsPTqH3txrs9crCp3ZiMAXuSenhz89Jnl4GZs/67S5VOSg=="
}, },
"core-js-compat": { "core-js-compat": {
"version": "3.4.5", "version": "3.4.5",

View file

@ -40,6 +40,7 @@
"clean-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^3.0.0",
"connect-history-api-fallback": "^1.3.0", "connect-history-api-fallback": "^1.3.0",
"copy-webpack-plugin": "^5.0.5", "copy-webpack-plugin": "^5.0.5",
"core-js": "^3.4.7",
"cross-env": "^5.2.1", "cross-env": "^5.2.1",
"crypto-random-string": "^3.0.1", "crypto-random-string": "^3.0.1",
"css-loader": "^2.1.1", "css-loader": "^2.1.1",
@ -87,6 +88,7 @@
"postcss-url": "^8.0.0", "postcss-url": "^8.0.0",
"pubsub-js": "^1.7.0", "pubsub-js": "^1.7.0",
"puppeteer-core": "^1.20.0", "puppeteer-core": "^1.20.0",
"regenerator-runtime": "^0.13.3",
"resolve-url-loader": "^3.1.1", "resolve-url-loader": "^3.1.1",
"sass-loader": "^7.3.1", "sass-loader": "^7.3.1",
"sinon": "^7.5.0", "sinon": "^7.5.0",

View file

@ -1,3 +1,5 @@
import "core-js/stable";
import "regenerator-runtime/runtime";
import Api from "common/api"; import Api from "common/api";
import Notify from "common/notify"; import Notify from "common/notify";
import Config from "common/config"; import Config from "common/config";

View file

@ -1,4 +1,3 @@
import "@babel/polyfill/noConflict";
import Axios from "axios"; import Axios from "axios";
import Notify from "common/notify"; import Notify from "common/notify";