mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
A program module that runs in a Node island loads with nodeIsland.require instead of nodeIsland.defer, so the build-time probe never evaluates the program's own source. Deferral and its probe stay with island packages. A program island module ships the data files it names by their exact path relative to its directory, including consecutive literal arguments of one call (join(here, "fallback", "payload.txt")). A file elsewhere in the tree with the same name no longer ships. Files the source does not name ship when scriptc.nodeIslands.files declares them (paths or globs relative to the package.json); a declared path without a file is SC8004. The island module order in the lowering is cached in a Map the lowering owns instead of a WeakMap.