diff --git a/package.json b/package.json index 011febb..f0d2de4 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "webpack --config webpack.dev.js --mode development", + "stage": "webpack --config webpack.stage.js --mode production", "prod": "webpack --config webpack.prod.js --mode production" }, "repository": { diff --git a/webpack.stage.js b/webpack.stage.js index 0568b58..08bf695 100644 --- a/webpack.stage.js +++ b/webpack.stage.js @@ -76,11 +76,12 @@ module.exports = { loader: 'babel-loader', options: { presets: [ - '@babel/preset-env', + ['@babel/preset-env', { - "useBuiltIns": "entry" - } - ], + "useBuiltIns": "entry", + "corejs": 3.9 + }] + ] }, }, },