Do not quote properties when optimizing bundles

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-07-07 09:18:43 +02:00
parent 09b9f94c38
commit 5aef97cfa7
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 14 additions and 0 deletions

View File

@ -1,9 +1,23 @@
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
const TerserPlugin = require('terser-webpack-plugin');
module.exports = common.map(
config => merge(config, {
mode: 'production',
devtool: '#source-map',
// This is required to keep IE11 compatibility (see #21316)
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {
output: {
keep_quoted_props: true,
},
},
}),
],
},
})
)