$ the-wire · showcase
Hydrogen's macOS CI build peaks at 1.2 GB instead of 2.5 GB
By RepoJournal · Filed · About Shopify · Composed from the cited sources · methodology
Hydrogen's package build stopped running two TypeScript programs at once, dropping peak heap below the ~2 GB cap that macOS runners put on Node and ending the "JavaScript heap out of memory" failures in Local HTTPS (macos-latest).
fix(hydrogen): stop the package build running out of memory on macOS CI Shopify/hydrogen
Each of the two `dts: true` tsdown configs was a full TypeScript program costing ~1.2 GB once gql.tada's types were in play, so production and development declarations together pushed the build to ~2.5 GB. Dropping the second program brings the peak back to ~1.2 GB, comfortably under the macOS runner's heap cap.
fix(hydrogen): stop the package build running out of memory on macOS CI (#4400) Shopify/hydrogen
The fix folds the development-only entry into the production program, whose own declarations now type it while its JavaScript is dropped; the development build emits declarations that re-export rather than compile its own. Same type coverage for the dev entry, one compilation.