zap
zap copied to clipboard
Optimize scoped css transformation
We currently just add a class to every selector, which doesn't appear to always be correct and certainly isn't the most efficient approach. This process could probably be optimized, for instance by once again looking at how Svelte is doing it.
While we're at it, we could also try to find all nodes potentially affected by styles at compile-time and only add relevant classes to them.