mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #377] [MERGED] refactor: extract generateSsrEntry and generateBrowserEntry into entries/ #522
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#522
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/377
Author: @james-elicx
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/9/2026
Merged by: @james-elicx
Base:
main← Head:refactor/extract-ssr-browser-entries📝 Commits (1)
fac210frefactor: extract generateSsrEntry and generateBrowserEntry into entries/📊 Changes
3 files changed (+789 additions, -787 deletions)
View changed files
➕
packages/vinext/src/entries/app-browser-entry.ts(+339 -0)➕
packages/vinext/src/entries/app-ssr-entry.ts(+448 -0)📝
packages/vinext/src/server/app-dev-server.ts(+2 -787)📄 Description
Summary
generateSsrEntryandgenerateBrowserEntryfromserver/app-dev-server.tsinto new dedicated modules underpackages/vinext/src/entries/app-dev-server.tsre-exports them from the new locations, keeping the public API identicalMotivation
Part of the refactor tracked in #253.
app-dev-server.tsis ~3200 lines; moving the two self-contained entry generators (no parameters, no closure dependencies) intoentries/is the cleanest first step.Changes
packages/vinext/src/entries/app-ssr-entry.tsgenerateSsrEntry()packages/vinext/src/entries/app-browser-entry.tsgenerateBrowserEntry()packages/vinext/src/server/app-dev-server.tsFollow-ups (not in this PR)
generateRscEntry(~1860 lines) →entries/app-rsc-entry.tsgenerateServerEntry/generateClientEntryfromindex.ts🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.