File tree 2 files changed +1
-8
lines changed
packages/ts/file-router/src/vite-plugin
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,5 @@ export default routes;
128
128
) ;
129
129
130
130
const file = createSourceFile ( routeDeclaration , 'file-routes.ts' ) ;
131
- // also keep the old file temporarily for compatibility purposes:
132
- const tempFile = createSourceFile ( routeDeclaration , 'views.ts' ) ;
133
- printer . printFile ( tempFile ) ;
134
131
return printer . printFile ( file ) ;
135
132
}
Original file line number Diff line number Diff line change @@ -60,17 +60,13 @@ export async function generateRuntimeFiles(
60
60
logger . info ( 'Collected file-based routes' ) ;
61
61
const runtimeRoutesCode = createRoutesFromMeta ( routeMeta , urls ) ;
62
62
const viewConfigJson = await createViewConfigJson ( routeMeta ) ;
63
- const tempUrl = new URL ( 'views.ts' , urls . code . href ) ;
63
+
64
64
await Promise . all ( [
65
65
generateRuntimeFile ( urls . json , viewConfigJson ) . then ( ( ) =>
66
66
logger . info ( `Frontend route list is generated: ${ String ( urls . json ) } ` ) ,
67
67
) ,
68
68
generateRuntimeFile ( urls . code , runtimeRoutesCode ) . then ( ( ) =>
69
69
logger . info ( `File Route module is generated: ${ String ( urls . code ) } ` ) ,
70
70
) ,
71
- // also keep the old file temporarily for compatibility purposes:
72
- generateRuntimeFile ( tempUrl , runtimeRoutesCode ) . then ( ( ) =>
73
- logger . info ( `Views module is generated: ${ String ( tempUrl ) } ` ) ,
74
- ) ,
75
71
] ) ;
76
72
}
You can’t perform that action at this time.
0 commit comments