Skip to content

Commit 425ee50

Browse files
committed
build: reduce dist size
1 parent 05a81ff commit 425ee50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@ import { defineBuildConfig } from "obuild/config";
22

33
export default defineBuildConfig({
44
entries: ["src/index.ts", "src/compiler.ts"],
5+
hooks: {
6+
rolldownConfig(config) {
7+
config.experimental ??= {};
8+
config.experimental.attachDebugInfo = "none";
9+
},
10+
},
511
});

0 commit comments

Comments
 (0)