next.js
cf83d7c0 - fix(cache): DCE to avoid pulling server internals into browser bundles (4/8) (#89865)

Commit
206 days ago
fix(cache): DCE to avoid pulling server internals into browser bundles (4/8) (#89865) ## Summary Fix dead-code elimination in `packages/next/cache.js` to prevent server-only internals from being pulled into browser bundles. Restructures the conditional exports so bundlers can properly tree-shake server paths. ## Test plan - [ ] `pnpm --filter=next build` succeeds - [ ] No runtime behavior changes --------- Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Author
Parents
Loading