From 35b1aef7653b1271780fe7baf79d11443b37620c Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 18 Mar 2022 10:13:02 +0000 Subject: [PATCH] Preserve "Exception" names when minifying (#7096) GitOrigin-RevId: 41a869d0cb9f3506707c9d24d94f1c05825c51ab --- services/web/webpack.config.prod.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/webpack.config.prod.js b/services/web/webpack.config.prod.js index c8f4aa41f5..e8e2f6738a 100644 --- a/services/web/webpack.config.prod.js +++ b/services/web/webpack.config.prod.js @@ -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(),