Skip to content

Commit 486c816

Browse files
committed
chore: lockfile
1 parent df27d86 commit 486c816

File tree

2 files changed

+26
-36
lines changed

2 files changed

+26
-36
lines changed
Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1 @@
1-
# Vite + RSC
2-
3-
This example shows how to setup a React application with [Server Component](https://react.dev/reference/rsc/server-components) features on Vite using [`@vitejs/plugin-rsc`](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc).
4-
5-
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc/examples/starter)
6-
7-
```sh
8-
# run dev server
9-
npm run dev
10-
11-
# build for production and preview
12-
npm run build
13-
npm run preview
14-
```
15-
16-
## API usages
17-
18-
See [`@vitejs/plugin-rsc`](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc) for the documentation.
19-
20-
- [`vite.config.ts`](./vite.config.ts)
21-
- `@higoawa/vite-rsc/plugin`
22-
- [`./src/framework/entry.rsc.tsx`](./src/framework/entry.rsc.tsx)
23-
- `@vitejs/plugin-rsc/rsc`
24-
- `import.meta.viteRsc.loadModule`
25-
- [`./src/framework/entry.ssr.tsx`](./src/framework/entry.ssr.tsx)
26-
- `@vitejs/plugin-rsc/ssr`
27-
- `@vitejs/plugin-rsc/rsc-html-stream/ssr`
28-
- `import.meta.viteRsc.loadBootstrapScriptContent`
29-
- [`./src/framework/entry.browser.tsx`](./src/framework/entry.browser.tsx)
30-
- `@vitejs/plugin-rsc/browser`
31-
- `@vitejs/plugin-rsc/rsc-html-stream/browser`
32-
33-
## Notes
34-
35-
- [`./src/framework/entry.{browser,rsc,ssr}.tsx`](./src/framework) (with inline comments) provides an overview of how low level RSC (React flight) API can be used to build RSC framework.
36-
- You can use [`vite-plugin-inspect`](https://github.com/antfu-collective/vite-plugin-inspect) to understand how `"use client"` and `"use server"` directives are transformed internally.
1+
[examples/starter](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc/examples/starter) without SSR environment

pnpm-lock.yaml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)