@rsc-kit/mcp 0.20.12 → 0.20.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/guides/getting-started.md +1 -1
- package/guides/installation.md +1 -1
- package/guides/ppr.md +4 -0
- package/guides/where-it-runs.md +2 -17
- package/package.json +1 -1
|
@@ -58,7 +58,7 @@ generation](/guides/static-generation).
|
|
|
58
58
|
With the Bun preset the whole application ends up in one file:
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
|
-
npm run compile # builds, then bun build --compile
|
|
61
|
+
npm run compile # builds, then bun build --compile
|
|
62
62
|
./dist/app
|
|
63
63
|
```
|
|
64
64
|
|
package/guides/installation.md
CHANGED
|
@@ -170,7 +170,7 @@ runs](/hosts/where-it-runs).
|
|
|
170
170
|
"dev": "bun --bun vite",
|
|
171
171
|
"build": "bun --bun vite build",
|
|
172
172
|
"start": "bun .output/server/index.mjs",
|
|
173
|
-
"compile": "bun --bun vite build && bun build --compile
|
|
173
|
+
"compile": "bun --bun vite build && bun build --compile .output/server/compile.mjs --outfile dist/app"
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
```
|
package/guides/ppr.md
CHANGED
|
@@ -53,6 +53,10 @@ a url it does know; the client sets the title again after hydration. Static
|
|
|
53
53
|
|
|
54
54
|
## A shell and the server that finishes it are one build
|
|
55
55
|
|
|
56
|
+
A replay matches a slot by component **name**, so anything that renames a
|
|
57
|
+
component between the build and the server breaks every slot below it.
|
|
58
|
+
|
|
59
|
+
|
|
56
60
|
A postponed state names the components React has to find when it replays, and
|
|
57
61
|
a name is whatever that build's minifier assigned. Resumed against a different
|
|
58
62
|
bundle, the same component answers to something else:
|
package/guides/where-it-runs.md
CHANGED
|
@@ -65,7 +65,7 @@ Bun only, and the whole application ends up inside one file — engine, route
|
|
|
65
65
|
tree, frozen pages and assets, the precompressed variants included:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
npm run compile # builds, then bun build --compile
|
|
68
|
+
npm run compile # builds, then bun build --compile .output/server/compile.mjs
|
|
69
69
|
./dist/app
|
|
70
70
|
```
|
|
71
71
|
|
|
@@ -82,22 +82,7 @@ a binary one version behind the source with nothing to say so — and on a
|
|
|
82
82
|
project that has never been built, an `ENOENT` naming a path the app did not
|
|
83
83
|
write.
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
minifies — and minifying renames every function. A partially prerendered page
|
|
87
|
-
is finished by replaying a tree the build recorded by component *name*, so a
|
|
88
|
-
binary that renamed them finds the wrong name in every slot:
|
|
89
|
-
|
|
90
|
-
```text
|
|
91
|
-
Expected the resume to render <J> in this slot but instead it rendered <J2>.
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
React then falls back to client rendering for every hole, and the page arrives
|
|
95
|
-
looking finished with nothing wired up. `--keep-names` preserves the names the
|
|
96
|
-
build recorded, and costs a few kilobytes. A build with no PPR route never
|
|
97
|
-
notices; one with them fails only on a cold load, in production, which is the
|
|
98
|
-
worst way to find out.
|
|
99
|
-
|
|
100
|
-
`--target bun` is the default. `--bytecode`
|
|
85
|
+
`--compile` implies `--production`; `--target bun` is the default. `--bytecode`
|
|
101
86
|
compiles the JavaScript ahead of time for a faster cold start at the cost
|
|
102
87
|
of a larger binary — a production port measured 275 ms → 72 ms to the first
|
|
103
88
|
healthy response for 81 MB → 117 MB, and left it out, since on a pod the
|
package/package.json
CHANGED