-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Vanilla css not injecting the link tags in remix #10045
Comments
As mentioned in vanilla-extract-css/vanilla-extract#1479, the issue seems to be that remix is stripping side-effect imports for some reason. Regular imports of Vanilla Extract styles are unaffected. |
Yes, and i should add that the package manager should not be relevant for this issue. |
Reproduction
https:/vincent-thomas/remix-vanilla-extract-css-repro
run in dev mode: "bun run dev"
then run in prod mode "bun run build && bun run start"
System Info
Used Package Manager
bun
Expected Behavior
For the vanilla css styles corresponding link tag to be generated into the html in prod mode
Actual Behavior
This is not the case. Vanilla extract generates the css files, but does not inject the link tags in the html files. This has been tested on other vite projects and remix is the only one to fail
The text was updated successfully, but these errors were encountered: