Skip to content

Commit a573598

Browse files
committed
Remove react-router:override-optimize-deps plugin
1 parent 20e6f24 commit a573598

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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({});

0 commit comments

Comments
 (0)