File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 [plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc)
2020 - label : |
2121 [plugin-react-oxc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-oxc)
22+ - label : |
23+ [plugin-rsc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc)
2224 - type : textarea
2325 id : bug-description
2426 attributes :
Original file line number Diff line number Diff line change 1919 [plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc)
2020 - label : |
2121 [plugin-react-oxc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-oxc)
22+ - label : |
23+ [plugin-rsc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc)
2224 - type : textarea
2325 id : feature-description
2426 attributes :
Original file line number Diff line number Diff line change 3030 "homepage" : " https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc#readme" ,
3131 "dependencies" : {
3232 "@rolldown/pluginutils" : " 1.0.0-beta.24" ,
33- "@swc/core" : " ^1.12.9 "
33+ "@swc/core" : " ^1.12.11 "
3434 },
3535 "peerDependencies" : {
3636 "vite" : " ^4 || ^5 || ^6 || ^7"
Original file line number Diff line number Diff line change 1717 "@types/react" : " ^19.1.8" ,
1818 "@types/react-dom" : " ^19.1.6" ,
1919 "@vitejs/plugin-react-swc" : " ../../dist" ,
20- "@swc/plugin-emotion" : " ^10.0.2 "
20+ "@swc/plugin-emotion" : " ^10.0.3 "
2121 }
2222}
Original file line number Diff line number Diff line change 1414 "styled-components" : " ^6.1.19"
1515 },
1616 "devDependencies" : {
17- "@swc/plugin-styled-components" : " ^8.0.2 " ,
17+ "@swc/plugin-styled-components" : " ^8.0.3 " ,
1818 "@types/react" : " ^19.1.8" ,
1919 "@types/react-dom" : " ^19.1.6" ,
2020 "@types/styled-components" : " ^5.1.34" ,
Original file line number Diff line number Diff line change 1+ ## <small >[ 0.4.12] ( https://github.com/vitejs/vite-plugin-react/compare/plugin-rsc@0.4.11...plugin-rsc@0.4.12 ) (2025-07-14)</small >
2+ ### Features
3+
4+ * ** rsc:** support regex directive for ` transformHoistInlineDirective ` ([ #527 ] ( https://github.com/vitejs/vite-plugin-react/issues/527 ) ) ([ b598bb5] ( https://github.com/vitejs/vite-plugin-react/commit/b598bb57d6a7d76bb4ce41ae5990913461949ec3 ) )
5+
6+ ### Bug Fixes
7+
8+ * ** rsc:** support setups without an SSR environment ([ #562 ] ( https://github.com/vitejs/vite-plugin-react/issues/562 ) ) ([ 0fc7fcd] ( https://github.com/vitejs/vite-plugin-react/commit/0fc7fcdae31568dcd2568a10333ad1e79e2d5176 ) )
9+
110## <small >[ 0.4.11] ( https://github.com/vitejs/vite-plugin-react/compare/plugin-rsc@0.4.10...plugin-rsc@0.4.11 ) (2025-07-07)</small >
211### Miscellaneous Chores
312
1322* ** deps:** update all non-major dependencies ([ #540 ] ( https://github.com/vitejs/vite-plugin-react/issues/540 ) ) ([ cfe2912] ( https://github.com/vitejs/vite-plugin-react/commit/cfe29122a8eec6c1e2ed9999531237dbce140e60 ) )
1423* return ` Plugin[] ` instead of ` PluginOption[] ` ([ #537 ] ( https://github.com/vitejs/vite-plugin-react/issues/537 ) ) ([ 11f56d6] ( https://github.com/vitejs/vite-plugin-react/commit/11f56d63a9ed082137732211db556c784cadb523 ) )
1524
16- ### Miscellaneous Chores
17-
18- * ** rsc:** fix example deps ([ #534 ] ( https://github.com/vitejs/vite-plugin-react/issues/534 ) ) ([ a7d32a0] ( https://github.com/vitejs/vite-plugin-react/commit/a7d32a0a1c383964b67fa01c1f5959446759f02d ) )
19- * ** rsc:** fix links ([ #530 ] ( https://github.com/vitejs/vite-plugin-react/issues/530 ) ) ([ feb762f] ( https://github.com/vitejs/vite-plugin-react/commit/feb762f291cf6460281e64820374bf288485c4a3 ) )
20- * ** rsc:** remove ` examples/hono ` ([ #533 ] ( https://github.com/vitejs/vite-plugin-react/issues/533 ) ) ([ 46df0fd] ( https://github.com/vitejs/vite-plugin-react/commit/46df0fd6274365168259a67bc63ea1e689eb9681 ) )
21-
22- ### Tests
23-
24- * ** rsc:** check hydration mismatch ([ #526 ] ( https://github.com/vitejs/vite-plugin-react/issues/526 ) ) ([ ce84449] ( https://github.com/vitejs/vite-plugin-react/commit/ce84449c87a8834ffafcf0b3f2fc63ad464b921d ) )
25- * ** rsc:** fix flaky server restart test ([ #535 ] ( https://github.com/vitejs/vite-plugin-react/issues/535 ) ) ([ 079feaf] ( https://github.com/vitejs/vite-plugin-react/commit/079feaf1ac2b06a704efc0c7ef6d6a0276207d53 ) )
26- * ** rsc:** test browser only component ([ #528 ] ( https://github.com/vitejs/vite-plugin-react/issues/528 ) ) ([ 795303e] ( https://github.com/vitejs/vite-plugin-react/commit/795303efe78fed2cff2237c6d6d066d76c284ced ) )
27- * ** rsc:** test react compiler ([ #529 ] ( https://github.com/vitejs/vite-plugin-react/issues/529 ) ) ([ 2966af5] ( https://github.com/vitejs/vite-plugin-react/commit/2966af52393514e0c23d3236afccba699b042322 ) )
28-
2925## v0.4.10-alpha.1 (2025-07-04)
3026
3127- feat: add ` @vitejs/plugin-rsc ` ([ #521 ] ( https://github.com/vitejs/vite-plugin-react/pull/521 ) )
Original file line number Diff line number Diff line change 55 "type" : " module" ,
66 "scripts" : {
77 "dev" : " vite" ,
8- "build" : " vite build --app " ,
8+ "build" : " vite build" ,
99 "preview" : " vite preview" ,
1010 "cf-build" : " CF_BUILD=1 pnpm build" ,
1111 "cf-preview" : " wrangler dev" ,
Original file line number Diff line number Diff line change 55 "type" : " module" ,
66 "scripts" : {
77 "dev" : " vite" ,
8- "build" : " vite build --app " ,
8+ "build" : " vite build" ,
99 "preview" : " vite preview" ,
1010 "cf-dev" : " vite -c ./cf/vite.config.ts" ,
1111 "cf-build" : " vite -c ./cf/vite.config.ts build" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @vitejs/plugin-rsc" ,
3- "version" : " 0.4.11 " ,
3+ "version" : " 0.4.12 " ,
44 "description" : " React Server Components (RSC) support for Vite." ,
55 "keywords" : [
66 " vite" ,
Original file line number Diff line number Diff line change @@ -303,7 +303,9 @@ export default function vitePluginRsc(
303303 `[vite-rsc] failed to resolve server handler '${ source } '` ,
304304 )
305305 const mod = await environment . runner . import ( resolved . id )
306- createRequestListener ( mod . default ) ( req , res )
306+ // ensure catching rejected promise
307+ // https://github.com/mjackson/remix-the-web/blob/b5aa2ae24558f5d926af576482caf6e9b35461dc/packages/node-fetch-server/src/lib/request-listener.ts#L87
308+ await createRequestListener ( mod . default ) ( req , res )
307309 } catch ( e ) {
308310 next ( e )
309311 }
@@ -336,7 +338,7 @@ export default function vitePluginRsc(
336338 return ( ) => {
337339 server . middlewares . use ( async ( req , res , next ) => {
338340 try {
339- handler ( req , res )
341+ await handler ( req , res )
340342 } catch ( e ) {
341343 next ( e )
342344 }
You can’t perform that action at this time.
0 commit comments