Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SSR builds interfering with client builds #33

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

AdrianGonz97
Copy link
Owner

@AdrianGonz97 AdrianGonz97 commented Apr 25, 2024

closes #32

This one was a doozy to figure out.

The root of the issue was the blocklist being unintentionally shared across runs, causing the purge blocklist of the SSR build to share with the client build. The culprit was a global variable (my archnemesis) from PurgeCSS.

While I was at it, I also took the liberty to simplify the extraction process to better match what tailwind would normally do, only extracting selectors from the source file rather than the compiled module.

Copy link

changeset-bot bot commented Apr 25, 2024

🦋 Changeset detected

Latest commit: 137191c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vite-plugin-tailwind-purgecss Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@AdrianGonz97 AdrianGonz97 merged commit a248a67 into master Apr 25, 2024
1 check passed
@AdrianGonz97 AdrianGonz97 deleted the fix/ssr-bundling branch April 25, 2024 04:49
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: Classes are mistakenly purged when a component module is referenced, but not present in the template
1 participant