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 95781a3 commit 84008daCopy full SHA for 84008da
packages/react-router-dev/vite/plugin.ts
@@ -1116,9 +1116,11 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
1116
});
1117
1118
await updatePluginContext();
1119
- buildManifest = ctx.reactRouterConfig.future.unstable_viteEnvironmentApi
1120
- ? await getBuildManifest(ctx)
1121
- : ctx.environmentBuildContext?.buildManifest;
+ buildManifest =
+ ctx.reactRouterConfig.future.unstable_viteEnvironmentApi ||
+ viteCommand === "serve"
1122
+ ? await getBuildManifest(ctx)
1123
+ : ctx.environmentBuildContext?.buildManifest;
1124
invariant(buildManifest);
1125
1126
Object.assign(
0 commit comments