We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40bddff commit 07c118dCopy full SHA for 07c118d
1 file changed
build.config.mjs build.config.tsbuild.config.mjs renamed to build.config.ts
@@ -14,7 +14,12 @@ export default defineBuildConfig({
14
hooks: {
15
rolldownOutput(config) {
16
config.codeSplitting = {};
17
- config.chunkFileNames = "h3-[hash].mjs";
+ config.chunkFileNames = (chunkInfo) => {
18
+ if (chunkInfo.name === "src") {
19
+ return "h3.mjs";
20
+ }
21
+ return "[name].mjs";
22
+ };
23
},
24
async end() {
25
const { exportSource } = await import("mdzilla");
@@ -26,8 +31,9 @@ export default defineBuildConfig({
26
31
rolldownConfig(config) {
27
32
config.experimental ??= {};
28
33
config.experimental.attachDebugInfo = "none";
29
-
30
- config.plugins ??= [];
34
+ if (!Array.isArray(config.plugins)) {
35
+ config.plugins = [];
36
37
config.plugins.push({
38
name: "remove-comments",
39
renderChunk(code) {
0 commit comments