-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
π BUG: Svelte CSS won't work on build if inside a component with client:only
directive
#2966
Comments
Same for me with |
The last version this worked properly was |
Still happening on For me it only happens with |
Initial findings: this is caused by our recent PR to prevent styles leaking to unrelated pages #2918 Dev-y notes mostly for myself: When building the page, βοΈ Working on a fix to address the above! Hoping we don't need too many changes |
What version of
astro
are you using?0.25.4
What package manager are you using?
npm, (but local pnpm)
What operating system are you using?
Stackblitz, but local linux
Describe the Bug
Expected
1 -
npm run dev
β2 - Observe components are blue and red β
3 -
npm run build && npm run preview
β4 - Observe components continue to be blue and red β
Reproduced
1 -
npm run dev
β2 - Observe components are blue and red β
3 -
npm run build && npm run preview
β4 - Observe red is red, but blue isn't blue β
The difference in components is the
client:XXX
directiveI tried to understand better astro codes to understand this, but I failed to understand vite-plugins particpation, etc... if someone points the right direction I would try to submit a PR
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-cdtzxj?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: