Skip to content

Add static node:module parity - #361

Merged
ctate merged 1 commit into
mainfrom
codex/static-node-module-parity
Sep 20, 2026
Merged

ctate merged 1 commit into
mainfrom
codex/static-node-module-parity

Conversation

@ctate

@ctate ctate commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • compile canonical createRequire(import.meta.url) program-module edges through the TS 7 program and existing static CommonJS module graph
  • support relative modules, package #imports, whole exports, namespace members, destructuring, side-effect loads, and --npm-static require entries while preserving the dynamic-island package lane
  • add static module.isBuiltin() and the observationally safe module.syncBuiltinESMExports() slice, then promote createRequire, isBuiltin, syncBuiltinESMExports, and builtinModules to test-backed partial Node 24 support

Validation

  • pnpm -r build
  • pnpm lint (0 errors; existing warnings only)
  • pnpm test:ts7 (7 files, 143 tests, 1,407-entry order canary)
  • focused native differential for 2932-create-require-program
  • dynamic npm createRequire differential
  • --npm-static createRequire differential
  • pnpm node-compat:check
  • cd docs && NEXT_DIST_DIR=.next-check pnpm check
  • pnpm test:sandbox (plain + sanitized lanes passed across 16 Linux sandboxes; Darwin contracts and external suites passed)

@vercel

vercel Bot commented Sep 20, 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 20, 2026 7:36pm UTC

@ctate
ctate merged commit 4e175f4 into main Sep 20, 2026
20 checks passed

This branch was successfully deployed

1 active deployment
Preview 6db5366d Deployed Sep 20, 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.

1 participant