vuejs / vue-loader

📦 Webpack loader for Vue.js components
MIT License
4.99k stars 914 forks source link

Scoped styles are not applied when loading Vue component via SystemJS #2067

Open francisco-alonso opened 6 months ago

francisco-alonso commented 6 months ago

Hello,

I'm loading a Vue component via a SystemJS register. In my component I have a stylesheet associated to it.

If I add the scoped tag, styles are not applied. If I remove it, styles are applied correctly but it can impact other components in the frontend we're using to load the remote component.

Have you recently faced a similar problem?

It does not work

<style scoped lang="css">
//css
</style>

It does work

<style lang="css">
//css
</style>