Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 120e6cd

Browse files
committed
build: flatten chunk names to keep stub and prod same
1 parent 6400327 commit 120e6cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { normalize } from "pathe";
2+
import { defineBuildConfig } from "unbuild";
3+
4+
export default defineBuildConfig({
5+
rollup: {
6+
output: {
7+
chunkFileNames(chunk) {
8+
return "_[name].mjs";
9+
},
10+
},
11+
},
12+
});

0 commit comments

Comments
 (0)