Skip to content

Commit d18b139

Browse files
authored
fix(config): avoid watching rolldown runtime virtual module (#21545)
1 parent 8b47ff7 commit d18b139

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/vite/src/node/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,8 @@ async function bundleConfigFile(
24412441

24422442
return {
24432443
code: entryChunk.code,
2444-
dependencies: [...allModules],
2444+
// exclude `\x00rolldown/runtime.js`
2445+
dependencies: [...allModules].filter((m) => !m.startsWith('\0')),
24452446
}
24462447
}
24472448

0 commit comments

Comments
 (0)