Skip to content

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

Merged
williamzujkowski merged 1 commit into
mainfrom
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 into
mainfrom
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
williamzujkowski added a commit that referenced this pull request May 13, 2026
Closes #173. Original pin (commit 4fff6e8 / PR #155) was added to dodge
a chunk-resolution bug in `@tailwindcss/node@4.2.2`'s ESM cache loader
(see issue #153) that crashed Astro prerender builds on the full 53K+
page site.

Tailwind 4.3.0 is three minor versions ahead. Local sparse-content
build passes; CI's full-content-submodule build will exercise the
original failure path. If the bug returns, this PR can be reverted
with a one-line edit.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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