Skip to content

fix(deps): cap esbuild override to <0.28.0 to avoid regression#1301

Merged
BYK merged 1 commit into
mainfrom
fix/cap-esbuild-override
May 14, 2026
Merged

fix(deps): cap esbuild override to <0.28.0 to avoid regression#1301
BYK merged 1 commit into
mainfrom
fix/cap-esbuild-override

Conversation

@BYK
Copy link
Copy Markdown
Member

@BYK BYK commented May 14, 2026

Summary

  • Caps the esbuild pnpm override from >=0.25.0 to >=0.25.0 <0.28.0 to work around a known esbuild 0.28.0 regression (esbuild#4436)
  • esbuild 0.28.0 incorrectly errors on destructuring syntax for modern browser targets (chrome87, es2020, etc.) that natively support it, breaking the @spotlightjs/website build via @astrojs/react's dist/client.js
  • This fixes the CI failure on the release/4.11.4 branch (build run)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spotlightjs Ready Ready Preview, Comment May 14, 2026 10:39pm

Request Review

esbuild 0.28.0 has a known regression (esbuild#4436) where it
incorrectly errors on destructuring syntax for modern browser targets
(chrome87, es2020, etc.) that natively support it. This broke the
website build via @astrojs/react's client.js.

Cap the override at <0.28.0 so vite@6.4.2 and tsx resolve to 0.27.4.
@BYK BYK force-pushed the fix/cap-esbuild-override branch from b904555 to 2ca6dc7 Compare May 14, 2026 22:39
@BYK BYK deployed to Preview May 14, 2026 22:39 — with GitHub Actions Active
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 1348 uncovered lines.
✅ Project coverage is 76.31%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    76.31%    76.31%        —%
==========================================
  Files           47        47         —
  Lines         5690      5690         —
  Branches       611       614        +3
==========================================
+ Hits          4342      4342         —
- Misses        1348      1348         —
- Partials         5         5         —

Generated by Codecov Action

@BYK BYK merged commit bdd08a3 into main May 14, 2026
22 of 24 checks passed
@BYK BYK deleted the fix/cap-esbuild-override branch May 14, 2026 22:45
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.

1 participant