summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js30
1 files changed, 26 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 750ee4c89a..8749e93914 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,12 +9,34 @@ module.exports = {
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'public/js'),
- filename: "[name].js"
+ filename: '[name].js'
},
optimization: {
minimize: true,
- minimizer: [new TerserPlugin({
- sourceMap: true
- })],
+ minimizer: [new TerserPlugin({
+ sourceMap: true,
+ })],
},
+ module: {
+ rules: [
+ {
+ test: /\.js$/,
+ exclude: /node_modules/,
+ use: {
+ loader: 'babel-loader',
+ options: {
+ presets: [
+ [
+ '@babel/preset-env',
+ {
+ useBuiltIns: 'entry',
+ corejs: 3,
+ }
+ ]
+ ]
+ }
+ }
+ }
+ ]
+ }
};