nuxt
nuxt copied to clipboard
fix(vite): inline styles for imports used only on server
๐ Linked issue
resolves https://github.com/nuxt/nuxt/issues/24480 resolves https://github.com/nuxt/nuxt/issues/25330
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Not quite sure why, but we were previously not extracting styles for components that didn't have a counterpart in the client build. This change avoids the early return, but needs some extra testing to see what I was thinking in https://github.com/nuxt/nuxt/pull/21573 ๐ค
It also needs a simple test.
๐ Checklist
- [x] I have linked an issue or discussion.
- [ ] I have added tests (if possible).
- [ ] I have updated the documentation accordingly.
Run & review this pull request in StackBlitz Codeflow.