Skip to content

Releases: vitejs/vite-plugin-react

plugin-rsc@0.5.35

Choose a tag to compare

@github-actions github-actions released this 16 Sep 00:49
a309c8b

Features

Bug Fixes

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

  • rsc: copy use cache/server mixed directive handling to examples/use-cache-persistent (#1417) (523e45b)

plugin-react@6.1.1

Choose a tag to compare

@github-actions github-actions released this 28 Aug 03:30
04cac50

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

Choose a tag to compare

@github-actions github-actions released this 20 Aug 02:47
39b3173

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-react
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  plugins: [
     react({ compiler: true })
  ]
})

plugin-rsc@0.5.34

Choose a tag to compare

@vite-release-bot vite-release-bot released this 07 Aug 07:32
72f1fc7

Features

  • rsc: support inline "use cache" exports in file-level "use server" modules and vice versa (#1415) (5626b31)
  • rsc: support inline directive methods (#1413) (40300f1)

Documentation

Miscellaneous Chores

Tests

plugin-rsc@0.5.33

Choose a tag to compare

@vite-release-bot vite-release-bot released this 06 Aug 03:15
11ad0af

Features

  • rsc: add ability to access client entry URL from ssr environment and deprecate loadBootstrapScriptContent (#1360) (c2e0273)
  • rsc: allow transformWrapExport filter 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 callable use cache example (#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 server file (#1383) (c046a90)
  • rsc: reject uninitialized export in use server file (#1384) (96f3cdd)
  • rsc: treat strings as directives only at the top (#1396) (fcb0ca5)
  • rsc: use module export effect transform for use server file directive (#1355) (640d7d7)

Documentation

  • rsc: prefer /rsc/server and /rsc/client entry points over /rsc (#1345) (8d4b7f2)

Miscellaneous Chores

  • deps: update react-related dependencies (#1374) (ad9d77c)
  • rsc: add use cache example 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 cache cache keys (file directive only) (#1401) (b0521cc)

Code Refactoring

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 cache form action cache hits after hydrated reload (#1402) (d10e2ae)
  • rsc: add transform source map fixtures (#1365) (7f0d3c3)
  • rsc: decrypt cache captures once in use cache example (#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 server transform function name preservation (#1366) (8a4439a)
  • rsc: verify server action closure encryption (#1400) (8629f28)

Continuous Integration

plugin-react@6.0.5

Choose a tag to compare

@vite-release-bot vite-release-bot released this 30 Jul 10:10
68c0cb8

Fixed the react compiler preset filter to be linear (#1353)

The improved filter in v6.0.3 was non-linear and caused a performance regression (#1349). The filter was changed to be linear to avoid that.

plugin-react-swc@4.3.3

Choose a tag to compare

@vite-release-bot vite-release-bot released this 30 Jul 10:22
07a2e01

Add a patch for bundled-dev mode compat #1352

Added a patch so that this plugin works with the experimental bundled dev mode. Note that because this Vite feature is experimental, compatibility in future Vite releases is not guaranteed.

plugin-rsc@0.5.32

Choose a tag to compare

@vite-release-bot vite-release-bot released this 28 Jul 09:24
3030a34

Bug Fixes

  • rsc: preserve server reference metadata compatibility (#1340) (54f38e0)

plugin-rsc@0.5.31

Choose a tag to compare

@vite-release-bot vite-release-bot released this 28 Jul 06:34
4b5c809

Features

  • rsc: ability to register server function via plugins (#1310) (31cdbb8)

Bug Fixes

  • deps: update all non-major dependencies (#1327) (a00a9f8)
  • deps: update dependency react-router to v8 [security] (#1328) (4560c61)
  • rsc: correct keepUseClientProxy option typo (#1325) (6225dc9)
  • rsc: ignore root resolution errors in rsc:virtual-client-package (#1309) (d432264)

Documentation

  • replace tsc-dev with tsc in agents instruction so they won't get stuck (#1324) (036ae00)
  • rsc: document /react/* entries and update examples list (#1311) (bd417ef)

Miscellaneous Chores

  • rsc: align performance track payload with starter (#1321) (dfc36c4)
  • rsc: explain inline hoist transform with comments (#1331) (7a16ffe)
  • rsc: fix internal and example typos (#1318) (b14ed96)
  • rsc: split use cache into dedicated example (#1312) (713fed1)
  • rsc: update Tailwind and remove HMR workaround (#1329) (28f6637)

Code Refactoring

  • rsc: normalize return value of transformServerActionServer (#1313) (bc5ca14)

Tests

  • rsc: unskip performance track test in canary CI (#1308) (cd6c50f)

Continuous Integration

plugin-rsc@0.5.30

Choose a tag to compare

@github-actions github-actions released this 23 Jul 03:50
32611a2

Please refer to CHANGELOG.md for details.