From 94dae0a5a362ae329f2c17b2e6c92d5297fd29d0 Mon Sep 17 00:00:00 2001 From: ReznoRMichael Date: Fri, 19 Feb 2021 00:36:15 +0100 Subject: [PATCH] stage config --- package.json | 1 + webpack.stage.js | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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 + }] + ] }, }, },