Preserve "Exception" names when minifying (#7096)

GitOrigin-RevId: 41a869d0cb9f3506707c9d24d94f1c05825c51ab
This commit is contained in:
Alf Eaton 2022-03-18 10:13:02 +00:00 committed by Copybot
parent 9d9bf8b9d0
commit 35b1aef765

View file

@ -45,8 +45,8 @@ module.exports = merge.smart(
minimizer: [
new TerserPlugin({
terserOptions: {
keep_classnames: /Error$/,
keep_fnames: /Error$/,
keep_classnames: /(Error|Exception)$/,
keep_fnames: /(Error|Exception)$/,
},
}),
new OptimizeCssAssetsPlugin(),