Skip to content

Commit

Permalink
fix(vite): add remix-node to optimizeDeps.include (#8177)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Nov 30, 2023
1 parent bf6c0a4 commit 1405b4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-timers-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

Add `@remix-run/node` to Vite's `optimizeDeps.include` array
1 change: 1 addition & 0 deletions packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ 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",
"@remix-run/node",
],
},
esbuild: {
Expand Down

0 comments on commit 1405b4b

Please sign in to comment.