Skip to content

Commit f322d47

Browse files
Remove @react-router/node from optimizeDeps.include (#11490)
1 parent 9103c6b commit f322d47

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: packages/remix-dev/vite/plugin.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1083,13 +1083,6 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = (_config) => {
10831083
// Mismatching routers cause `Error: You must render this element inside a <Remix> element`.
10841084
"react-router",
10851085
"react-router-dom",
1086-
1087-
// For some reason, the `vite-dotenv` integration test consistently fails on webkit
1088-
// with `504 (Outdated Optimize Dep)` from Vite unless `@react-router/node` is included
1089-
// in `optimizeDeps.include`. 🤷
1090-
// This could be caused by how we copy `node_modules/` into integration test fixtures,
1091-
// so maybe this will be unnecessary once we switch to pnpm
1092-
"@react-router/node",
10931086
],
10941087
},
10951088
esbuild: {

0 commit comments

Comments
 (0)