Skip to content

fix(compiler): admit safe CommonJS export prologues - #482

Merged
ctate merged 1 commit into
mainfrom
ctate/issue-37-cjs-require-order
Sep 27, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/issue-37-cjs-require-order

Conversation

@ctate

@ctate ctate commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator
  • Keep CommonJS packages eligible for static compilation when export prologues precede require calls.
  • Preserve initialization order and early-access safeguards with frontend and native regression coverage.

Fixes #37

- Keep CommonJS packages eligible for static compilation when export prologues precede require calls.
- Preserve initialization order and early-access safeguards with frontend and native regression coverage.

Fixes #37

Co-authored-by: vini <91087061+vinikjkkj@users.noreply.github.com>
@vercel

vercel Bot commented Sep 27, 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 27, 2026 3:37am UTC

@ctate
ctate merged commit 2d74c03 into main Sep 27, 2026
36 of 38 checks passed

This branch was successfully deployed

1 active deployment
Preview — b455fd7d Deployed Sep 27, 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.

--npm-static rejects CJS bundles with require() below code reaching the binding (SC1013)

1 participant