mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #702] [MERGED] refactor: consolidate fileURLToPath path resolution into resolveEntryPath() #781
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#781
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/702
Author: @james-elicx
Created: 3/28/2026
Status: ✅ Merged
Merged: 3/28/2026
Merged by: @james-elicx
Base:
main← Head:opencode/shiny-falcon📝 Commits (1)
aae0ba7refactor: consolidate fileURLToPath path resolution into resolveEntryPath()📊 Changes
5 files changed (+68 additions, -85 deletions)
View changed files
📝
packages/vinext/src/cloudflare/tpr.ts(+1 -3)📝
packages/vinext/src/entries/app-rsc-entry.ts(+35 -47)📝
packages/vinext/src/entries/pages-server-entry.ts(+12 -30)📝
packages/vinext/src/entries/runtime-entry-module.ts(+18 -3)📝
packages/vinext/src/index.ts(+2 -2)📄 Description
Summary
resolveEntryPath(rel, base)toentries/runtime-entry-module.tsas the single owner of thefileURLToPath(new URL(rel, base)).replace(/\\/g, "/")idiomapp-rsc-entry.tsand 8 inpages-server-entry.tswith the shared helper;resolveRuntimeEntryModulealso delegates to itconst __dirname = path.dirname(fileURLToPath(import.meta.url))inindex.tsandcloudflare/tpr.tswithimport.meta.dirname(Node 22+, already used throughout the test suite), removing now-unused imports🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.