Repository navigation
fix(plugin-react): fix new refreshInclude option - #1543
Merged
Merged
Conversation
sapphi-red
approved these changes
Nov 2, 2026
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Nov 4, 2026
| datasource | package | from | to | | ---------- | -------------------- | ----- | ----- | | npm | @vitejs/plugin-react | 6.1.2 | 6.2.1 | ## [v6.2.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#621-2026-11-02) ##### Fix `refreshInclude` and `refreshExclude` options not working ([#1543](vitejs/vite-plugin-react#1543)) Fix mistake from [#1516](vitejs/vite-plugin-react#1516) ## [v6.2.0](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#620-2026-11-02) ##### Add `refreshInclude` and `refreshExclude` options ([#1516](vitejs/vite-plugin-react#1516)) Add `refreshInclude` and `refreshExclude` options to skip fast refresh for certain files that won't run in the browser. ##### Expand `oxc-transform-react` peer dependency range ([#1540](vitejs/vite-plugin-react#1540)) The peer dependency version range for `oxc-transform-react` was expanded from `^0.152.0` to `>=0.152.0 <0.157.0`. ##### Expand `@rolldown/plugin-babel` peer dependency range ([#1541](vitejs/vite-plugin-react#1541)) The peer dependency version range for `@rolldown/plugin-babel` was expanded from `^0.1.7 || ^0.2.0` to `^0.1.7 || ^0.2.0 || ^0.3.0`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix mistake from #1516
Closes #1524
I copy pasted the logic, but in oxc the condition was reversed.
Actually I think going forward it's better to give priority to
jsxRefreshFilterif defined to allow it to exclude some JSX files that should not be refresh (web workers)