From 708017884198822df81d24488b32fe0efc9d8dba Mon Sep 17 00:00:00 2001 From: Github Date: Fri, 14 Mar 2025 13:30:28 +0100 Subject: [PATCH 1/2] Update Terser config to keep function and class names for stack traces --- config/webpack/webpack.common.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/webpack/webpack.common.ts b/config/webpack/webpack.common.ts index c58ee143fc1..28607f6d17e 100644 --- a/config/webpack/webpack.common.ts +++ b/config/webpack/webpack.common.ts @@ -300,8 +300,12 @@ const getCommonConfiguration = ({file = '.env', platform = 'web'}: Environment): compress: { passes: 2, }, - // eslint-disable-next-line @typescript-eslint/naming-convention - keep_classnames: /ImageManipulator|ImageModule/, + mangle: { + // eslint-disable-next-line @typescript-eslint/naming-convention + keep_classnames: true, + // eslint-disable-next-line @typescript-eslint/naming-convention + keep_fnames: true, + }, }, }), '...', From 5985176d3a8b0f093420c1779804a4c9559b4efa Mon Sep 17 00:00:00 2001 From: Github Date: Tue, 18 Mar 2025 15:11:49 +0100 Subject: [PATCH 2/2] fix adhoc build --- config/webpack/webpack.common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/webpack/webpack.common.ts b/config/webpack/webpack.common.ts index 28607f6d17e..03c4d262b5f 100644 --- a/config/webpack/webpack.common.ts +++ b/config/webpack/webpack.common.ts @@ -300,9 +300,9 @@ const getCommonConfiguration = ({file = '.env', platform = 'web'}: Environment): compress: { passes: 2, }, + // eslint-disable-next-line @typescript-eslint/naming-convention + keep_classnames: /ImageManipulator|ImageModule/, mangle: { - // eslint-disable-next-line @typescript-eslint/naming-convention - keep_classnames: true, // eslint-disable-next-line @typescript-eslint/naming-convention keep_fnames: true, },