File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/react-router-dev/vite/rsc Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ import { loadDotenv } from "../load-dotenv";
2929import { validatePluginOrder } from "../plugins/validate-plugin-order" ;
3030import { warnOnClientSourceMaps } from "../plugins/warn-on-client-source-maps" ;
3131
32+ let loggedExperimentalWarning = false ;
33+
3234export function reactRouterRSCVitePlugin ( ) : Vite . PluginOption [ ] {
3335 let configLoader : ConfigLoader ;
3436 let typegenWatcherPromise : Promise < Typegen . Watcher > | undefined ;
@@ -280,6 +282,18 @@ export function reactRouterRSCVitePlugin(): Vite.PluginOption[] {
280282 await configLoader . close ( ) ;
281283 } ,
282284 } ,
285+ {
286+ name : "react-router/rsc/experimental-warning" ,
287+ configResolved ( ) {
288+ if ( loggedExperimentalWarning ) return ;
289+ loggedExperimentalWarning = true ;
290+ logger . warn (
291+ colors . yellow (
292+ `${ viteCommand === "serve" ? " " : "" } 🧪 Using React Router's RSC Framework Mode (experimental)` ,
293+ ) ,
294+ ) ;
295+ } ,
296+ } ,
283297 {
284298 name : "react-router/rsc/typegen" ,
285299 async config ( viteUserConfig , { command, mode } ) {
You can’t perform that action at this time.
0 commit comments