Skip to content

Commit

Permalink
chore(vite): explain why @remix-run/node is in `optimizeDeps.includ…
Browse files Browse the repository at this point in the history
…e` (#8185)
  • Loading branch information
pcattori committed Nov 30, 2023
1 parent 35e4613 commit 8550821
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,12 @@ export const remixVitePlugin: RemixVitePlugin = (options = {}) => {
// That means that before Vite pre-bundles dependencies (e.g. first time dev server is run)
// mismatching Remix routers cause `Error: You must render this element inside a <Remix> element`.
"@remix-run/react",

// For some reason, the `vite-dotenv` integration test consistently fails on webkit
// with `504 (Outdated Optimize Dep)` from Vite unless `@remix-run/node` is included
// in `optimizeDeps.include`. 🤷
// This could be caused by how we copy `node_modules/` into integration test fixtures,
// so maybe this will be unnecessary once we switch to pnpm
"@remix-run/node",
],
},
Expand Down

0 comments on commit 8550821

Please sign in to comment.