From f1b8aeffd745759c62aeafd713990fb9dcd57420 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 20 Apr 2021 11:33:02 -0700 Subject: [PATCH] Disable mangling and compression Summary: This is not doing much in terms of size. We're talking 780 bytes after PACK compression but we're losing a lot of information in our errors (before have symbolication). We may reenable this at some point but I think it might be safe to leave it to this. Reviewed By: nikoant Differential Revision: D27887636 fbshipit-source-id: 15affeac588db667914320cbd098f7041b8b9c09 --- desktop/pkg-lib/src/runBuild.ts | 2 ++ desktop/scripts/build-utils.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/desktop/pkg-lib/src/runBuild.ts b/desktop/pkg-lib/src/runBuild.ts index 413dfc701..4985bdfdf 100644 --- a/desktop/pkg-lib/src/runBuild.ts +++ b/desktop/pkg-lib/src/runBuild.ts @@ -71,6 +71,8 @@ export default async function bundlePlugin(pluginDir: string, dev: boolean) { keep_fnames: true, module: true, warnings: true, + mangle: false, + compress: false, }, }, resolver: { diff --git a/desktop/scripts/build-utils.ts b/desktop/scripts/build-utils.ts index 84c909eb2..360142a9b 100644 --- a/desktop/scripts/build-utils.ts +++ b/desktop/scripts/build-utils.ts @@ -109,6 +109,8 @@ const minifierConfig = { keep_fnames: true, module: true, warnings: true, + mangle: false, + compress: false, }, };