From: Julius Härtl Date: Tue, 7 Jul 2020 07:18:43 +0000 (+0200) Subject: Do not quote properties when optimizing bundles X-Git-Tag: v20.0.0beta1~297^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5aef97cfa7c81b00859f7e2966c77cbe42e66d0a;p=nextcloud-server.git Do not quote properties when optimizing bundles Signed-off-by: Julius Härtl --- 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, + }, + }, + }), + ], + }, }) )