Skip to content

fix: pin Tailwind CSS to 4.1.18 to fix ESM chunk resolution#155

Merged
williamzujkowski merged 1 commit intomainfrom
fix/tailwind-build-pin
Apr 2, 2026
Merged

fix: pin Tailwind CSS to 4.1.18 to fix ESM chunk resolution#155
williamzujkowski merged 1 commit intomainfrom
fix/tailwind-build-pin

Conversation

@williamzujkowski
Copy link
Copy Markdown
Collaborator

Summary

  • Pin tailwindcss and @tailwindcss/vite from ^4.2.2 to 4.1.18
  • Fixes ESM chunk resolution error in @tailwindcss/node that crashes Astro prerender builds
  • Build verified: 56,239 pages built successfully

Related

Test plan

  • pnpm --filter @civic-source/web build succeeds with NODE_OPTIONS='--max-old-space-size=8192'
  • 56,239 pages generated without errors
  • All 248+ package tests still pass

🤖 Generated with Claude Code

@tailwindcss/vite 4.2.2 introduced a broken ESM chunk resolution in
its cache loader that crashes Astro builds during prerendering. Pin
both tailwindcss and @tailwindcss/vite to 4.1.18 until upstream fix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@williamzujkowski williamzujkowski merged commit 4fff6e8 into main Apr 2, 2026
1 check passed
@williamzujkowski williamzujkowski deleted the fix/tailwind-build-pin branch April 2, 2026 01:55
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.

bug: Astro build fails with Tailwind CSS 4.2.2 ESM chunk resolution error

1 participant