Skip to content

Unify TS 7 project module resolution - #308

Merged
ctate merged 1 commit into
mainfrom
codex/unified-module-resolution
Sep 14, 2026
Merged

ctate merged 1 commit into
mainfrom
codex/unified-module-resolution

Conversation

@ctate

@ctate ctate commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • adopt project paths in the TypeScript 7 program, normalize inherited/baseUrl-relative targets, and give scriptc's resolver the identical map
  • route static imports, re-exports, dynamic imports, and CommonJS require() through one project-module resolver before npm fallback
  • add Node-differential ESM and CommonJS self-reference fixtures plus TS 5.9 resolver-oracle, TS 7 order-canary, native alias, and compatibility-ledger evidence

Closes #239.

This incorporates the TypeScript 7 paths intent from #197 and the bare project dynamic-import portion of #200 on top of the current resolver architecture.

Validation

  • pnpm -r build
  • pnpm exec vitest run packages/compiler/src/frontend/resolve.test.ts packages/compiler/test/ts7 — 94 passed
  • focused C-backend project-config and module corpus runs — project aliases plus 7 ESM/CJS module cases passed
  • touched-file ESLint — no errors
  • pnpm node-compat:check
  • cd docs && NEXT_DIST_DIR=.next-check pnpm check
  • pnpm test:sandbox: all 16 Linux plain/sanitized Sandbox lanes passed. Four local lanes initially started before the ignored Darwin helper/runtime artifacts existed; after building the pinned LLVM 22.1.8 helper and matching runtime pack, the exact gate-equivalent local matrix passed in both lanes:
    • Darwin contracts: 18 passed per lane
    • prettier/Portless external suites: 6 passed per lane
    • Vercel E2E: 31 passed across two shards per lane

@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Sep 14, 2026 1:54am UTC

@ctate
ctate merged commit d7aed4b into main Sep 14, 2026
21 checks passed

This branch was successfully deployed

1 active deployment
Preview 881f7514 Deployed Sep 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Path aliases (@/...) from tsconfig paths not resolved — SC0001: Cannot find module

1 participant