mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
An `export * from` declaration binds each re-exported name to the binding of the module that declares it, like a named re-export, so it has no initialization state of its own. Import cycles whose modules re-export another member of the cycle this way now compile with the exact cycle initialization: re-exported names read the same values, and throw the same temporal dead zone errors, as in Node. `export * as ns` of a cycle member keeps the SC1016 refusal. pi-coding-agent's sdk.js (sdk.js → agent-session-runtime.js → agent-session-services.js → sdk.js) has this shape. Refs #1777.