Skip to content

Commit 7ebc7ba

Browse files
committed
Always provide virtual module
1 parent 261b3ed commit 7ebc7ba

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/react-router-dev/vite/rsc/plugin.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,6 @@ export function reactRouterRSCVitePlugin(): Vite.PluginOption[] {
505505
}
506506
},
507507
load(id) {
508-
// react-router-serve is not used in dev mode
509-
if (viteCommand !== "build") {
510-
return `export default {};`;
511-
}
512-
513508
if (id === virtual.reactRouterServeConfig.resolvedId) {
514509
const rscOutDir = resolvedViteConfig.environments.rsc?.build?.outDir;
515510
invariant(rscOutDir, "RSC build directory config not found");

0 commit comments

Comments
 (0)