From 66336ef78c5397ace881f7498dcbafe27211734d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20M=C3=B8ller?= Date: Wed, 12 Apr 2023 08:51:35 +0200 Subject: [PATCH] Remove SWC and Terser minification clash --- src/plugins/es5.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/es5.ts b/src/plugins/es5.ts index 5d1030c7..99bd9d11 100644 --- a/src/plugins/es5.ts +++ b/src/plugins/es5.ts @@ -35,7 +35,7 @@ export const es5 = (): Plugin => { parser: { syntax: 'ecmascript', }, - minify: this.options.minify ? { + minify: this.options.minify === true ? { compress: false, mangle: { reserved: this.options.globalName ? [this.options.globalName] : []