Vanilla-extract with globalStyle #5238
Unanswered
augustskare
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Thanks for the bug report! I've opened a PR that fixes this: #5246 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was unable to create an issue, that's why I created a "discussion".
It's not possible to import a
.css.ts
file with onlyglobalStyle
. After raising the issue with @markdalgleish directly he pointed out that this looks like a tree shaking issue and it could be solved by updating thesideEffects
field in your package.json to include"*.css.ts"
.Here is a reproducible example
If you'r on the main branch you can see the styles are not being applied. Then if you checkout the "works" branch you can see that it works once you export something (in this example the body variable).
Beta Was this translation helpful? Give feedback.
All reactions