Skip to content

Commit

Permalink
fix(remix-dev/vite): fix react-refresh/babel plugin resolution (#7904)
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Cattori <pcattori@gmail.com>
  • Loading branch information
hi-ogawa and pcattori authored Nov 7, 2023
1 parent 1ee9093 commit 8543efe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brown-panthers-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

fix(vite): fix "react-refresh/babel" resolution for custom server with pnpm
2 changes: 1 addition & 1 deletion packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ export const remixVitePlugin: RemixVitePlugin = (options = {}) => {
allowAwaitOutsideFunction: true,
plugins: ["jsx", "typescript"],
},
plugins: ["react-refresh/babel"],
plugins: [require("react-refresh/babel")],
sourceMaps: true,
});
if (result === null) return;
Expand Down

0 comments on commit 8543efe

Please sign in to comment.