Skip to content

Commit

Permalink
fix(vite): set skipEnvCheck for react-refresh/babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 12, 2023
1 parent bf2feb9 commit 25181c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ export const remixVitePlugin: RemixVitePlugin = (options = {}) => {
allowAwaitOutsideFunction: true,
plugins: ["jsx", "typescript"],
},
plugins: [require("react-refresh/babel")],
plugins: [[require("react-refresh/babel"), { skipEnvCheck: true }]],
sourceMaps: true,
});
if (result === null) return;
Expand Down

0 comments on commit 25181c6

Please sign in to comment.