Do not quote properties when optimizing bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
09b9f94c38
commit
5aef97cfa7
|
@ -1,9 +1,23 @@
|
||||||
const merge = require('webpack-merge')
|
const merge = require('webpack-merge')
|
||||||
const common = require('./webpack.common.js')
|
const common = require('./webpack.common.js')
|
||||||
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
|
|
||||||
module.exports = common.map(
|
module.exports = common.map(
|
||||||
config => merge(config, {
|
config => merge(config, {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
devtool: '#source-map',
|
devtool: '#source-map',
|
||||||
|
// This is required to keep IE11 compatibility (see #21316)
|
||||||
|
optimization: {
|
||||||
|
minimize: true,
|
||||||
|
minimizer: [
|
||||||
|
new TerserPlugin({
|
||||||
|
terserOptions: {
|
||||||
|
output: {
|
||||||
|
keep_quoted_props: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
},
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue