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 sideEffects declaration #659

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

just-boris
Copy link

@just-boris just-boris commented Dec 25, 2024

Description

With the current sideEffects: false declaration, webpack drops CSS files from the build completely. The line import "@radix-ui/themes/styles.css"; does not have any effect

More details in the webpack issue: webpack/webpack#6571

Also, the declaration need to propagate to the inner file in the /esm subfolder. Without that, every new package.json in a way assumes side effects by default

Testing steps

Patched locally, it works.

No differences found when using Vite

Relates issues / PRs

A bunch PRs to other libraries with the same fix

Copy link

vercel bot commented Dec 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
themes-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 5:34pm

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.

1 participant