mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #655] [MERGED] Fix tsconfig alias transforms for RSC builds #747
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#747
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/655
Author: @southpolesteve
Created: 3/22/2026
Status: ✅ Merged
Merged: 3/22/2026
Merged by: @southpolesteve
Base:
main← Head:codex/issue-611-tsconfig-alias-transforms📝 Commits (2)
a2e597dFix tsconfig alias transforms for RSC buildsf4059c3Fix flaky compressed streaming timing test📊 Changes
4 files changed (+496 additions, -4 deletions)
View changed files
📝
packages/vinext/src/index.ts(+158 -1)📝
tests/features.test.ts(+5 -3)➕
tests/tsconfig-path-alias-build.test.ts(+238 -0)📝
tests/tsconfig-paths-vite8.test.ts(+95 -0)📄 Description
Closes #611
Summary
tsconfig.json/jsconfig.jsonpath aliases intoresolve.alias@/...importstsconfig extendschains when loading path aliasesimport.meta.glob()and dynamic imports are transformed out of the emitted JSRoot cause
vinext already supported tsconfig path resolution for normal imports, but Vite's
import.meta.glob()and dynamic import transforms need the alias to be present inresolve.aliasduring build. Without that, alias-based MDX globs and imports could survive into the RSC/Cloudflare output unchanged and fail at runtime.Testing
vp test run tests/tsconfig-paths-vite8.test.ts tests/tsconfig-path-alias-build.test.tsvp lint packages/vinext/src/index.ts tests/tsconfig-paths-vite8.test.ts tests/tsconfig-path-alias-build.test.ts🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.