File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
packages/react-router-dev/vite/rsc Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,24 @@ export function reactRouterRSCVitePlugin(): Vite.PluginOption[] {
280
280
await configLoader . close ( ) ;
281
281
} ,
282
282
} ,
283
+ ( ( ) => {
284
+ let logged = false ;
285
+ function logExperimentalNotice ( ) {
286
+ if ( logged ) return ;
287
+ logged = true ;
288
+ logger . info (
289
+ colors . yellow (
290
+ `${ viteCommand === "serve" ? " " : "" } 🧪 Using React Router's RSC Framework Mode (experimental)` ,
291
+ ) ,
292
+ ) ;
293
+ }
294
+ return {
295
+ name : "react-router/rsc/log-experimental-notice" ,
296
+ sharedDuringBuild : true ,
297
+ buildStart : logExperimentalNotice ,
298
+ configureServer : logExperimentalNotice ,
299
+ } ;
300
+ } ) ( ) ,
283
301
{
284
302
name : "react-router/rsc/typegen" ,
285
303
async config ( viteUserConfig , { command, mode } ) {
You can’t perform that action at this time.
0 commit comments