Vite Plugin Vue Hoist CE Styles

JSON →
library 0.1.3 ·javascript
verified Apr 27, 2026

A Vite plugin that works around a Vue 3 bug where styles are not properly hoisted for custom elements (CE). It injects CSS into the main bundle entry file instead of relying on scoped styles. Version 0.1.3 is the latest and only release. The plugin is experimental, lacks unit tests, and has specific caveats: CSS imports outside SFCs break the build, and it only works with a limited set of configurations. It differs from alternative solutions by being a targeted patch for a specific Vue 3 issue with custom elements.

total hits 13
actors 4 distinct systems
last hit 1d ago AhrefsBot
GPTBot
5
MetaBot
3
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada