Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin-react): check for import React statement in .js files (vit…
…ejs#6320) * fix: reactPlugin skip inject react hmr code to workerFile (fix vitejs#6148) * Revert "fix: reactPlugin skip inject react hmr code to workerFile (fix vitejs#6148)" This reverts commit 136883d. * fix(plugin-react): check for import React statement in .js files …instead of using naïve `code.includes("react")` check Co-authored-by: Alec Larson <1925840+aleclarson@users.noreply.github.com>
- Loading branch information