Skip to content

fix: stop false Tailwind sourcemap warnings - #134

Merged
comfuture merged 1 commit into
mainfrom
fix/issue-132-tailwind-sourcemap
Aug 6, 2026
Merged

comfuture merged 1 commit into
mainfrom
fix/issue-132-tailwind-sourcemap

Conversation

@comfuture

Copy link
Copy Markdown
Owner

Summary

  • upgrade the client Tailwind CSS toolchain from 4.2.4 to 4.3.3
  • pin the Nuxt UI transitive @tailwindcss/vite and @tailwindcss/postcss integrations to the same fixed release
  • preserve Rollup sourcemap diagnostics globally while removing the false Tailwind no-op transform warning

Why

@tailwindcss/vite@4.2.4 returned the original source string for CSS files that were not Tailwind roots. Rollup therefore recorded a transform without a source map and emitted repeated SOURCEMAP_BROKEN warnings. Tailwind fixed that contract violation in tailwindlabs/tailwindcss#20103 by returning no transform result for unchanged CSS; the fix shipped in 4.3.1.

This change uses the current 4.3.3 patch release instead of filtering warnings. Legitimate sourcemap warnings from other plugins remain visible.

Validation

  • CI=true corepack pnpm install --frozen-lockfile
  • corepack pnpm --filter @codori/client lint
  • corepack pnpm --filter @codori/client typecheck
  • corepack pnpm --filter @codori/client test — 82 files and 533 tests passed
  • corepack pnpm --filter @codori/client build — succeeded with 0 @tailwindcss/vite:generate warnings
  • corepack pnpm build — all workspace packages built with 0 Tailwind sourcemap warnings
  • generated entry.*.css contains Nuxt UI tokens and compiled Tailwind utilities, with no uncompiled @import "tailwindcss"
  • local Nuxt dev startup warmed the Vite client, and direct loading of the transformed main.css Vite module returned HTTP 200 without a Tailwind sourcemap warning

Known gap

The full Nuxt document route returned HTTP 500 in this tool PTY because the existing Nuxt 4.4.4 dev runtime reported NUXT_VITE_NODE_OPTIONS.socketPath is not defined. That unrelated local-runtime failure reproduced before and after this dependency change; the Vite CSS transform itself was exercised directly and succeeded.

Closes #132

@comfuture
comfuture merged commit bf0d62b into main Aug 6, 2026
2 checks passed
@comfuture
comfuture deleted the fix/issue-132-tailwind-sourcemap branch August 6, 2026 06:36
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.

Stop false Tailwind sourcemap warnings in client builds

1 participant