GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(plugin-react): fix `compiler.logDiagnostics` by ArnaudBarre · Pull Request #1483 · vitejs/vite-plugin-react

Conversation

@ArnaudBarre

@ArnaudBarre ArnaudBarre commented Oct 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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
All reactions
  • 👍 1 reaction
@ArnaudBarre
fix(plugin-react): fix logDiagnostics
8fca74c
@ArnaudBarre
ArnaudBarre requested a review from sapphi-red October 4, 2026 16:27
@ArnaudBarre ArnaudBarre self-assigned this Oct 4, 2026
@ArnaudBarre ArnaudBarre mentioned this pull request Oct 4, 2026
[oxc-transform-react] Add reportDiagnostics to types oxc-project/oxc#27317
Closed
@ArnaudBarre
Add pr link
e13a649
@sapphi-red sapphi-red added the plugin: react label Oct 5, 2026
sapphi-red
sapphi-red approved these changes Oct 5, 2026
View reviewed changes
@sapphi-red
Merge branch 'main' into arnaud/fix-compiler-report-diagnositcs
6560fe3
@sapphi-red sapphi-red changed the title fix(plugin-react): fix logDiagnostics fix(plugin-react): fix compiler.logDiagnostics Oct 5, 2026
@sapphi-red
sapphi-red enabled auto-merge (squash) October 5, 2026 07:13
@sapphi-red
sapphi-red merged commit 3cfb1d1 into main Oct 5, 2026
23 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@sapphi-red
sapphi-red deleted the arnaud/fix-compiler-report-diagnositcs branch October 5, 2026 07:16
@vite-release-bot vite-release-bot Bot mentioned this pull request Oct 5, 2026
release: [email protected] #1491
Merged
@cpruijsen cpruijsen mentioned this pull request Oct 6, 2026
fix(react): respect tsconfig jsxImportSource (fix #1448) #1450
Closed
@lockfile-maintenance lockfile-maintenance Bot mentioned this pull request Oct 9, 2026
Lockfile maintenance knu/tabsquad#70
Merged
1 task
renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Oct 9, 2026
@renovate
Update dependency @vitejs/plugin-react to v6.1.2
adee5fd
| 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
@renovate
Update dependency @vitejs/plugin-react to v6.1.2
3215671
| 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
@renovate
Update dependency @vitejs/plugin-react to v6.1.2
c5151bd
| 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
@renovate
Update dependency @vitejs/plugin-react to v6.1.2
26ecb2d
| 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
@renovate
Update dependency @vitejs/plugin-react to v6.1.2
e7219d9
| 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.
@joelvoss joelvoss mentioned this pull request Nov 1, 2026
fix(plugin-react): widen oxc-transform-react range (fix #1437) #1536
Closed
@henry-nsheaps henry-nsheaps Bot mentioned this pull request Nov 4, 2026
chore(deps): update dependency @vitejs/plugin-react to ^6.1.2 nsheaps/private-pages#117
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sapphi-red sapphi-red sapphi-red approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@ArnaudBarre ArnaudBarre

Labels

plugin: react

Projects

None yet

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.

2 participants

@ArnaudBarre @sapphi-red
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.