We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca2282b commit 4106750Copy full SHA for 4106750
build.config.ts
@@ -1,6 +1,7 @@
1
import { defineBuildConfig } from "unbuild";
2
import { resolve } from "pathe";
3
import { fileURLToPath } from "node:url";
4
+import { normalize } from "pathe";
5
6
const srcDir = fileURLToPath(new URL("src", import.meta.url));
7
@@ -56,4 +57,15 @@ export default defineBuildConfig({
56
57
"firebase-functions",
58
"@scalar/api-reference",
59
],
60
+ rollup: {
61
+ output: {
62
+ chunkFileNames(chunk) {
63
+ const id = normalize(chunk.moduleIds.at(-1));
64
+ if (id.includes("/src/cli/")) {
65
+ return "cli/[name].mjs";
66
+ }
67
+ return "_chunks/[name].mjs";
68
+ },
69
70
71
});
0 commit comments