Skip to content

Commit 15017f1

Browse files
committed
improve minify
1 parent 7e58b70 commit 15017f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default defineConfig(
2424
const contents = text
2525
.replace(/if \(!gl[^}]*}/gm, "")
2626
.replace(/;\s*if \(![^;]*;/gm, "!;")
27+
.replace(/`[^`]*`/gm, match => match.replace(/\s+/g, " "))
2728
.trim();
2829
return { contents, loader: "ts" };
2930
});

0 commit comments

Comments
 (0)