Repository navigation
Releases: vitejs/vite-plugin-react
Release list
plugin-rsc@0.5.38
plugin-rsc@0.5.37
Features
Bug Fixes
- rsc: bind encrypted "use server" closures to their action id (#1499) (e77496b)
- rsc: drop Server Function source from client sourcemaps (#1497) (6f7c8a1)
- rsc: keep CSS wrappers out of a trailing comment when a module has no final newline (fix #1495) (#1494) (9a68f29)
Miscellaneous Chores
Tests
plugin-rsc@0.5.36
Bug Fixes
- deps: update all non-major dependencies (#1445) (ee97d2f)
- deps: update all non-major dependencies (#1486) (98277e7)
- deps: update dependency es-module-lexer to v3 (#1455) (f4e4a48)
- deps: update dependency srvx to v1 (#1456) (a574a54)
- rsc: finalize asset manifest after css (#1470) (14be507)
- rsc: resolve facade client entry with strictExecutionOrder (#1480) (0982f02)
- rsc: use
crossOrigin: anonymousfor css (#1469) (9b5ca53)
Tests
- rsc: fix
setupIsolatedFixturein ecosystem CI (#1471) (fd25651) - rsc: fix e2e flakes in use-cache-persistent and isolated fixture setup (#1487) (7212f34)
- rsc: make e2e file editor async and space out writes (#1489) (8063121)
- rsc: remove React canary checks (#1463) (df9f995)
- rsc: run cloudflare e2e on a copy of starter-extra (#1488) (c714161)
- rsc: wait for hydration in performance-track e2e (#1490) (bbf45d7)
plugin-react@6.1.2
Fix HMR for compound components (#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)
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) (#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.
plugin-rsc@0.5.35
Features
Bug Fixes
- deps: update all non-major dependencies (#1375) (9ab698e)
- deps: update all non-major dependencies (#1427) (fb2d6f3)
- deps: update all non-major dependencies (#1433) (61006e6)
- deps: update all non-major dependencies (#1442) (55895a4)
- deps: update dependency magic-string to v1 (#1443) (c9eba3e)
- deps: update dependency strip-literal to v4 (#1457) (9657ea1)
- deps: update react-related dependencies (#1452) (61b650f)
Miscellaneous Chores
- deps: update dependency @types/react-dom to ^19.2.5 (#1432) (e7c2b6d)
- deps: update dependency @types/react-dom to ^19.2.7 (#1444) (f135533)
- deps: update tsdown to v0.23 (#1451) (736efe2)
Code Refactoring
Tests
plugin-react@6.1.1
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)
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.
plugin-react@6.1.0
Add experimental native React Compiler support (#1419)
Add experimental native React Compiler support.
You can use it by installing oxc-transform-react and enabling it via the compiler option:
npm install -D oxc-transform-reactimport { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [
react({ compiler: true })
]
})plugin-rsc@0.5.34
plugin-rsc@0.5.33
Features
- rsc: add ability to access client entry URL from ssr environment and deprecate
loadBootstrapScriptContent(#1360) (c2e0273) - rsc: allow
transformWrapExportfilter by node ast (#1385) (64ae63c) - rsc: allow proxy export filter by node ast (#1397) (2fee299)
- rsc: provide ast node value metadata in
transformHoistInlineDirective+ update example to exclude undeclared caller arguments for use cache cache keys (inline directive) (#1404) (cd829da) - rsc: support hoisting with runtime wrapper in
transformHoistInlineDirective+ add callableuse cacheexample (#1330) (0f45d15)
Bug Fixes
- rsc: align transform API types with Vite AST (#1351) (2906fbf)
- rsc: avoid rewriting filtered exports in
transformWrapExport(#1387) (fba021f) - rsc: reject static non-function exports for
use serverfile (#1383) (c046a90) - rsc: reject uninitialized export in
use serverfile (#1384) (96f3cdd) - rsc: treat strings as directives only at the top (#1396) (fcb0ca5)
- rsc: use module export effect transform for
use serverfile directive (#1355) (640d7d7)
Documentation
Miscellaneous Chores
- deps: update react-related dependencies (#1374) (ad9d77c)
- rsc: add
use cacheexample with closure encryption (#1398) (f97d959) - rsc: add action request routing example with cross-environment server reference module reachability (#1341) (b8c9264)
- rsc: align example framework baseline (#1344) (317f769)
- rsc: remove stale source map todo in
transformServerActionServer(#1354) (88f7f0c) - rsc: update action reachability example to validate progressive form action (#1364) (793a994)
- rsc: update example to exclude undeclared caller arguments for
use cachecache keys (file directive only) (#1401) (b0521cc)
Code Refactoring
- rsc: extract module export scan (#1373) (69d6f7b)
- rsc: name transform option and result types (#1405) (d0bf90c)
- rsc: rename module export scan (#1379) (0e5ce3e)
- rsc: simplify declaration export metadata (#1388) (25a5e89)
Tests
- rsc: add e2e for react source map features (#1358) (9db4976)
- rsc: add readable source map snapshots (#1368) (c185eaa)
- rsc: add test case for
use cacheform action cache hits after hydrated reload (#1402) (d10e2ae) - rsc: add transform source map fixtures (#1365) (7f0d3c3)
- rsc: decrypt cache captures once in
use cacheexample (#1403) (42ce5d4) - rsc: fail fast when fixture server exits (#1367) (9cb1fda)
- rsc: invoke re-exported server reference (#1376) (001fe79)
- rsc: migrate hoist output fixtures (#1406) (c5683a6)
- rsc: migrate transform output fixtures (#1399) (e208d99)
- rsc: test
use servertransform function name preservation (#1366) (8a4439a) - rsc: verify server action closure encryption (#1400) (8629f28)