File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
packages/react-router-dev/vite Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -1445,26 +1445,6 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
14451445 configureServer : undefined ,
14461446 configurePreviewServer : undefined ,
14471447 } ) ) ,
1448- {
1449- name : "react-router:override-optimize-deps" ,
1450- config ( userConfig ) {
1451- // Prevent unnecessary dependency optimization in the child compiler
1452- if (
1453- ctx . reactRouterConfig . future . unstable_viteEnvironmentApi &&
1454- userConfig . environments
1455- ) {
1456- for ( const environmentName of Object . keys (
1457- userConfig . environments
1458- ) ) {
1459- userConfig . environments [ environmentName ] . optimizeDeps = {
1460- noDiscovery : true ,
1461- } ;
1462- }
1463- } else {
1464- userConfig . optimizeDeps = { noDiscovery : true } ;
1465- }
1466- } ,
1467- } ,
14681448 ] ,
14691449 } ) ;
14701450 await viteChildCompiler . pluginContainer . buildStart ( { } ) ;
You can’t perform that action at this time.
0 commit comments