Skip to content

fix(builder): limit tailwind sources to package src folders - #1535

Merged
viethung0o0 merged 2 commits into
mainfrom
fix/tailwind-source-scan
Oct 22, 2026
Merged

viethung0o0 merged 2 commits into
mainfrom
fix/tailwind-source-scan

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

  • Stop Tailwind from scanning the dependencies of workspace UI packages when compiling the builder stylesheet.
  • Compiling the stylesheet drops from about 7 GB of memory and 20 seconds to under 200 MB and half a second, in both next dev and next build.

Changes

  • Point the @source entries for ui, analytics-nextjs and minigame-ui at their src folders instead of the package root.
  • Add a test that fails if a workspace package is registered outside its src folder again.
  • The generated CSS only loses unused classes picked up from library docs and type files.

Test plan

  • pnpm lint
  • pnpm --filter builder check-types
  • builder test suite
  • manual check of the analytics dashboards, minigame screens and shared dialogs, dropdowns and calendars

@github-actions github-actions Bot added the bug Something isn't working as expected label Oct 22, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review October 22, 2026 06:38
@viethung0o0
viethung0o0 merged commit 281aea5 into main Oct 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants