Skip to content

Commit cdc7839

Browse files
committed
Remove resolved unstable_rootRoute config
1 parent 0ee1d14 commit cdc7839

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

integration/vite-presets-test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ test.describe("Vite / presets", async () => {
226226
"serverBundles",
227227
"serverModuleFormat",
228228
"ssr",
229-
"unstable_rootRouteFile",
230229
"unstable_routeConfig",
231230
]);
232231

packages/react-router-dev/config/config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@ export type ResolvedReactRouterConfig = Readonly<{
264264
* SPA without server-rendering. Default's to `true`.
265265
*/
266266
ssr: boolean;
267-
/**
268-
* The absolute path to the root route file.
269-
*/
270-
unstable_rootRouteFile: string;
271267
/**
272268
* The resolved array of route config entries exported from `routes.ts`
273269
*/
@@ -615,7 +611,6 @@ async function resolveConfig({
615611
serverBundles,
616612
serverModuleFormat,
617613
ssr,
618-
unstable_rootRouteFile: rootRouteFile,
619614
unstable_routeConfig: routeConfig,
620615
} satisfies ResolvedReactRouterConfig);
621616

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export function reactRouterRSCVitePlugin(): Vite.PluginOption[] {
315315
id,
316316
viteCommand,
317317
routeIdByFile,
318-
rootRouteFile: config.unstable_rootRouteFile,
318+
rootRouteFile: config.routes.root.file,
319319
viteEnvironment: this.environment,
320320
});
321321
},

0 commit comments

Comments
 (0)