Skip to content

fix(plugin-react): fix new refreshInclude option - #1543

Merged
sapphi-red merged 1 commit into
mainfrom
arnaud/fix-jsx-include
Nov 2, 2026
Merged

sapphi-red merged 1 commit into
mainfrom
arnaud/fix-jsx-include

Conversation

@ArnaudBarre

Copy link
Copy Markdown
Member

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 jsxRefreshFilter if defined to allow it to exclude some JSX files that should not be refresh (web workers)

@ArnaudBarre ArnaudBarre self-assigned this Nov 2, 2026
@sapphi-red
sapphi-red merged commit 22079fa into main Nov 2, 2026
13 checks passed
@sapphi-red
sapphi-red deleted the arnaud/fix-jsx-include branch November 2, 2026 09:04
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants