Repository navigation
fix(react): respect environment sourcemap option when builder.sharedPlugins is enabled - #1439
Merged
sapphi-red merged 2 commits intoAug 28, 2026
Conversation
…Plugins` is enabled
sapphi-red
deleted the
fix-react---respect-environment-sourcemap-option-when--builder-sharedplugins--is-enabled
branch
August 28, 2026 03:18
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 29, 2026
| datasource | package | from | to | | ---------- | -------------------- | ----- | ----- | | npm | @vitejs/plugin-react | 6.0.2 | 6.1.1 | ## [v6.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#611-2026-08-28) ##### Add `compiler.logDiagnostics` option Recoverable React Compiler diagnostics are no longer logged by default. Set `compiler.logDiagnostics` to `true` to log them through Vite. Fatal diagnostics are always logged and fail the transform. ##### Respect environment sourcemap option for React Compiler transform when `builder.sharedPlugins` is enabled ([#1439](vitejs/vite-plugin-react#1439)) The React Compiler transform was using the top-level sourcemap option instead of the environment sourcemap option. This caused a problem when the experimental `builder.sharedPlugins` was enabled. ## [v6.1.0](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#610-2026-08-19) ##### Add experimental native React Compiler support ([#1419](vitejs/vite-plugin-react#1419)) Add experimental native React Compiler support. You can use it by installing `oxc-transform-react` and enabling it via the `compiler` option: ```sh npm install -D oxc-transform-react ``` ```js import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [ react({ compiler: true }) ] }) ``` ## [v6.0.5](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#605-2026-07-30) ##### Fixed the react compiler preset filter to be linear ([#1353](vitejs/vite-plugin-react#1353)) The improved filter in v6.0.3 was non-linear and caused a performance regression ([#1349](vitejs/vite-plugin-react#1349)). The filter was changed to be linear to avoid that. ## [v6.0.4](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#604-2026-07-22) ##### Fixed `$RefreshSig$ is not defined` error when running `vite dev` with `NODE_ENV=production` When running `vite dev` with `NODE_ENV=production`, the app errored with `$RefreshSig$ is not defined`. This error is now fixed. ## [v6.0.3](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#603-2026-06-23)
renovate Bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 29, 2026
| datasource | package | from | to | | ---------- | -------------------- | ----- | ----- | | npm | @vitejs/plugin-react | 6.0.2 | 6.1.1 | ## [v6.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#611-2026-08-28) ##### Add `compiler.logDiagnostics` option Recoverable React Compiler diagnostics are no longer logged by default. Set `compiler.logDiagnostics` to `true` to log them through Vite. Fatal diagnostics are always logged and fail the transform. ##### Respect environment sourcemap option for React Compiler transform when `builder.sharedPlugins` is enabled ([#1439](vitejs/vite-plugin-react#1439)) The React Compiler transform was using the top-level sourcemap option instead of the environment sourcemap option. This caused a problem when the experimental `builder.sharedPlugins` was enabled. ## [v6.1.0](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#610-2026-08-19) ##### Add experimental native React Compiler support ([#1419](vitejs/vite-plugin-react#1419)) Add experimental native React Compiler support. You can use it by installing `oxc-transform-react` and enabling it via the `compiler` option: ```sh npm install -D oxc-transform-react ``` ```js import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [ react({ compiler: true }) ] }) ``` ## [v6.0.5](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#605-2026-07-30) ##### Fixed the react compiler preset filter to be linear ([#1353](vitejs/vite-plugin-react#1353)) The improved filter in v6.0.3 was non-linear and caused a performance regression ([#1349](vitejs/vite-plugin-react#1349)). The filter was changed to be linear to avoid that. ## [v6.0.4](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#604-2026-07-22) ##### Fixed `$RefreshSig$ is not defined` error when running `vite dev` with `NODE_ENV=production` When running `vite dev` with `NODE_ENV=production`, the app errored with `$RefreshSig$ is not defined`. This error is now fixed. ## [v6.0.3](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#603-2026-06-23)
Merged
1 task
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.
Description
fixes #1434
close #1435