mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #259] [CLOSED] refactor: extract template string code generation into entries/ modules #424
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#424
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/259
Author: @yunus25jmi1
Created: 3/5/2026
Status: ❌ Closed
Base:
main← Head:refactor/extract-entry-templates📝 Commits (1)
a75a261refactor: extract template string code generation into entries/ modules📊 Changes
9 files changed (+14510 additions, -4324 deletions)
View changed files
➕
packages/vinext/src/entries/app-browser-entry.ts(+326 -0)➕
packages/vinext/src/entries/app-rsc-entry.ts(+2501 -0)➕
packages/vinext/src/entries/app-ssr-entry.ts(+448 -0)➕
packages/vinext/src/entries/pages-client-entry.ts(+120 -0)➕
packages/vinext/src/entries/pages-server-entry.ts(+989 -0)📝
packages/vinext/src/index.ts(+6 -1062)📝
packages/vinext/src/server/app-dev-server.ts(+9 -3262)➕
tests/__snapshots__/entry-templates.test.ts.snap(+9935 -0)➕
tests/entry-templates.test.ts(+176 -0)📄 Description
Summary
Extract the 5 template string code generation functions from \index.ts\ and \pp-dev-server.ts\ into dedicated modules under \packages/vinext/src/entries/.
Changes
New files (\packages/vinext/src/entries/)
Modified files
Pages Router closure conversion
\generateServerEntry\ and \generateClientEntry\ were closures inside \inext()\ that captured \pagesDir,
extConfig, and \middlewarePath. Converted to explicit function parameters.
Tests
Verification
Closes #253
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.