From 5aef97cfa7c81b00859f7e2966c77cbe42e66d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 7 Jul 2020 09:18:43 +0200 Subject: Do not quote properties when optimizing bundles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- webpack.prod.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'webpack.prod.js') diff --git a/webpack.prod.js b/webpack.prod.js index 7cf446b9be5..a24e6a2af64 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -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, + }, + }, + }), + ], + }, }) ) -- cgit v1.2.3