Skip to content

Commit

Permalink
Ignore Babel config for react-refresh transform (#9241)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Apr 16, 2024
1 parent be68f52 commit 7aecb30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-otters-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

Ensure Babel config files are not referenced when applying the `react-refresh` Babel transform within the Remix Vite plugin
2 changes: 2 additions & 0 deletions packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,8 @@ export const remixVitePlugin: RemixVitePlugin = (remixUserConfig = {}) => {
}

let result = await babel.transformAsync(code, {
configFile: false,
babelrc: false,
filename: id,
sourceFileName: filepath,
parserOpts: {
Expand Down

0 comments on commit 7aecb30

Please sign in to comment.