GeezerVison is showing github.com — fix(plugin-react): fix `compiler.logDiagnostics` by ArnaudBarre · Pull Request #1483 · vitejs/vite-plugin-react
Conversation
ArnaudBarre
commented
Oct 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
With oxc-transform-react >= 0.148, the logDiagnostics was not working. This version fixes it and requires oxc-transform-react >= 0.152 as a peer dependency if you are using the compiler option. compiler.logDiagnostics option is now deprecated and should be swapped for the builtin compiler.reportDiagnostics.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
camc314 reacted with thumbs up emoji
sapphi-red
changed the title
fix(plugin-react): fix logDiagnostics
fix(plugin-react): fix compiler.logDiagnostics
Oct 5, 2026
Uh oh!
There was an error while loading. Please reload this page.
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Oct 9, 2026
| datasource | package | from | to |
| ---------- | -------------------- | ----- | ----- |
| npm | @vitejs/plugin-react | 6.1.1 | 6.1.2 |
## [v6.1.2](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#612-2026-10-05)
##### Fix HMR for compound components ([#1484](vitejs/vite-plugin-react#1484))
Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.
##### Fix `compiler.logDiagnostics` option not working ([#1483](vitejs/vite-plugin-react#1483))
With `oxc-transform-react` >= 0.148, the `logDiagnostics` was not working. This version fixes it and requires `oxc-transform-react` >= 0.152 as a peer dependency if you are using the `compiler` option. `compiler.logDiagnostics` option is now deprecated and should be swapped for the builtin `compiler.reportDiagnostics`.
##### Disable refresh for non-jsx with compiler enabled (fix [#1478](vitejs/vite-plugin-react#1478)) ([#1485](vitejs/vite-plugin-react#1485))
When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Oct 10, 2026
| datasource | package | from | to |
| ---------- | -------------------- | ----- | ----- |
| npm | @vitejs/plugin-react | 6.1.1 | 6.1.2 |
## [v6.1.2](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#612-2026-10-05)
##### Fix HMR for compound components ([#1484](vitejs/vite-plugin-react#1484))
Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.
##### Fix `compiler.logDiagnostics` option not working ([#1483](vitejs/vite-plugin-react#1483))
With `oxc-transform-react` >= 0.148, the `logDiagnostics` was not working. This version fixes it and requires `oxc-transform-react` >= 0.152 as a peer dependency if you are using the `compiler` option. `compiler.logDiagnostics` option is now deprecated and should be swapped for the builtin `compiler.reportDiagnostics`.
##### Disable refresh for non-jsx with compiler enabled (fix [#1478](vitejs/vite-plugin-react#1478)) ([#1485](vitejs/vite-plugin-react#1485))
When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Oct 11, 2026
| datasource | package | from | to |
| ---------- | -------------------- | ----- | ----- |
| npm | @vitejs/plugin-react | 6.1.1 | 6.1.2 |
## [v6.1.2](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#612-2026-10-05)
##### Fix HMR for compound components ([#1484](vitejs/vite-plugin-react#1484))
Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.
##### Fix `compiler.logDiagnostics` option not working ([#1483](vitejs/vite-plugin-react#1483))
With `oxc-transform-react` >= 0.148, the `logDiagnostics` was not working. This version fixes it and requires `oxc-transform-react` >= 0.152 as a peer dependency if you are using the `compiler` option. `compiler.logDiagnostics` option is now deprecated and should be swapped for the builtin `compiler.reportDiagnostics`.
##### Disable refresh for non-jsx with compiler enabled (fix [#1478](vitejs/vite-plugin-react#1478)) ([#1485](vitejs/vite-plugin-react#1485))
When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Oct 12, 2026
| datasource | package | from | to |
| ---------- | -------------------- | ----- | ----- |
| npm | @vitejs/plugin-react | 6.1.1 | 6.1.2 |
## [v6.1.2](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#612-2026-10-05)
##### Fix HMR for compound components ([#1484](vitejs/vite-plugin-react#1484))
Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.
##### Fix `compiler.logDiagnostics` option not working ([#1483](vitejs/vite-plugin-react#1483))
With `oxc-transform-react` >= 0.148, the `logDiagnostics` was not working. This version fixes it and requires `oxc-transform-react` >= 0.152 as a peer dependency if you are using the `compiler` option. `compiler.logDiagnostics` option is now deprecated and should be swapped for the builtin `compiler.reportDiagnostics`.
##### Disable refresh for non-jsx with compiler enabled (fix [#1478](vitejs/vite-plugin-react#1478)) ([#1485](vitejs/vite-plugin-react#1485))
When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Oct 15, 2026
| datasource | package | from | to |
| ---------- | -------------------- | ----- | ----- |
| npm | @vitejs/plugin-react | 6.1.1 | 6.1.2 |
## [v6.1.2](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#612-2026-10-05)
##### Fix HMR for compound components ([#1484](vitejs/vite-plugin-react#1484))
Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.
##### Fix `compiler.logDiagnostics` option not working ([#1483](vitejs/vite-plugin-react#1483))
With `oxc-transform-react` >= 0.148, the `logDiagnostics` was not working. This version fixes it and requires `oxc-transform-react` >= 0.152 as a peer dependency if you are using the `compiler` option. `compiler.logDiagnostics` option is now deprecated and should be swapped for the builtin `compiler.reportDiagnostics`.
##### Disable refresh for non-jsx with compiler enabled (fix [#1478](vitejs/vite-plugin-react#1478)) ([#1485](vitejs/vite-plugin-react#1485))
When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|