From 9cc86d6d5bd8c1c75b9f6d4a74862b93d9fc02af Mon Sep 17 00:00:00 2001 From: hyrious Date: Thu, 17 Oct 2024 16:52:09 +0800 Subject: [PATCH] fix: enable rollup `output.compact` when minify is enabled (#1232) --- src/plugins/tree-shaking.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/tree-shaking.ts b/src/plugins/tree-shaking.ts index 71e55553f..b9eb5a770 100644 --- a/src/plugins/tree-shaking.ts +++ b/src/plugins/tree-shaking.ts @@ -47,6 +47,7 @@ export const treeShakingPlugin = ({ format: this.format, file: info.path, sourcemap: !!this.options.sourcemap, + compact: !!this.options.minify, name, })