+- **`patchPageExports` plugin**: Next 16.2.x Turbopack templates set `handler` on a child module via `esmExport(bindings, childId)` then re-call `esmExport` for the entry id. Each page chunk's `module.exports = R.m(<entryId>).exports` then lacks `handler`, causing "ComponentMod.handler is not a function" on every app route. A new build-time plugin scans the SSR template chunks to discover entry→child mappings and rewrites each page.js / route.js terminator to merge the child's own-property descriptors over the entry's, exposing `handler` without touching the Turbopack runtime.
0 commit comments