Replace babel/polyfill w/ core-js v3.

Babel versions above 7.4 recommend using new core-js polyfill over
deprecated babel/polyfill. Also updated babel/core and babel/preset-env.
Added babelrc for defined config of corejs version & targeted browsers.
This commit is contained in:
2020-10-22 22:13:07 +02:00
parent d2242d4b9b
commit d49303a42a
5 changed files with 22 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ const helpers = require("./helpers");
const VinlottisConfig = {
entry: {
vinlottis: ["@babel/polyfill", helpers.root("src", "vinlottis-init")]
vinlottis: helpers.root("src", "vinlottis-init")
},
optimization: {
minimizer: [