Commit 449fbc5
fix: make lazy facade entry reclassification effective under rolldown-vite
normalizeEmittedLazyEntries used `delete entry.isEntry` to reclassify
emitted lazy facade chunks as dynamic entries. Under rolldown-vite
(Vite 8) the bundle passed to generateBundle materializes chunks as
proxies over native data: property assignment is trapped and synced
back to the native bundle after the hook, but a delete falls through
to the throwaway JS target while the proxy's read cache keeps serving
the previously read value. The reclassification therefore silently
no-oped and downstream plugins still saw every facade chunk flagged
isEntry, e.g. TanStack Start failing client builds with "multiple
entries detected".
Assign `isEntry = false` instead, which behaves identically on plain
objects (Rollup bundles and the parsed Vite manifest.json).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 56217a3 commit 449fbc5
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
| |||
0 commit comments