Pin esbuild as a devDependency (SSR build relies on unpinned npx download) #3

Closed
opened 2026-07-20 18:38:46 +00:00 by necrogami · 0 comments
Contributor

scripts/ssr-build.mjs (~line 147) prefers a global esbuild and falls back to npx esbuild, which downloads an unpinned version on first run. esbuild is load-bearing for the SSR build but appears nowhere in package.json — only break_infinity.js is declared.

Consequences:

  • First build on a fresh machine needs network access and silently picks up latest esbuild.
  • Builds aren't reproducible across machines/time.

Fix: npm install --save-dev esbuild, and have the build script resolve the local binary (node_modules/.bin/esbuild) before falling back.

`scripts/ssr-build.mjs` (~line 147) prefers a global `esbuild` and falls back to `npx esbuild`, which downloads an unpinned version on first run. esbuild is load-bearing for the SSR build but appears nowhere in `package.json` — only `break_infinity.js` is declared. Consequences: - First build on a fresh machine needs network access and silently picks up *latest* esbuild. - Builds aren't reproducible across machines/time. Fix: `npm install --save-dev esbuild`, and have the build script resolve the local binary (`node_modules/.bin/esbuild`) before falling back.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
og_arist0tle/dark-spire#3
No description provided.