@rsc-kit/core 0.20.11 → 0.20.12

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/dist/vite.js CHANGED
@@ -1464,6 +1464,13 @@ async function prerenderAfterBundles(bundle, staticDir, assetsDir, knownActions
1464
1464
  results = await prerender({
1465
1465
  engine,
1466
1466
  write: writeTo(staticDir),
1467
+ // Stamp every shell with the build that froze it. The host reads it
1468
+ // back and refuses to resume one from another build: a postponed
1469
+ // state names components by whatever that build's minifier called
1470
+ // them, and replayed against a different bundle React finds the
1471
+ // wrong name in every slot. Unstamped - which is what every build
1472
+ // before this one wrote - the host cannot tell and resumes anyway.
1473
+ version: await engine.buildId?.(),
1467
1474
  serviceWorker: offline,
1468
1475
  stylesheet: inlineStylesheets === false
1469
1476
  ? undefined