We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d09c4 commit d33b983Copy full SHA for d33b983
1 file changed
src/build/chunks.ts
@@ -1,7 +1,7 @@
1
import type { Nitro } from "nitro/types";
2
import { presetsDir, runtimeDir } from "nitro/meta";
3
4
-const virtualRe = /^\0|^virtual:/;
+const virtualRe = /^(?:\0|#|virtual:)/;
5
6
export const NODE_MODULES_RE = /node_modules[/\\][^.]/;
7
@@ -21,7 +21,7 @@ export function getChunkName(
21
return `${chunk.name}.mjs`;
22
}
23
if (chunk.name === "rolldown-runtime") {
24
- return "_runtime/rolldown.mjs";
+ return "_rolldown.mjs";
25
26
27
// No moduleIds
@@ -58,7 +58,7 @@ export function getChunkName(
58
if (
59
ids.every((id) => id.startsWith(runtimeDir) || id.startsWith(presetsDir))
60
) {
61
- return `_runtime/[name].mjs`;
+ return `_nitro/[name].mjs`;
62
63
64
// Try to match user defined routes or tasks
0 commit comments