DEV Community


Discussion on: Why I don't use web components

richharris profile image
Rich Harris Author

Yep, by default they compile to regular JavaScript classes

chimon1984 profile image
Ryan Edge

Ah ok, we have been looking into using Stencil for some shared components. I assumed you could do this with Svelte but I couldn't find any examples.

Thread Thread
hyperpress profile image
John Teague • Edited

But even though Rich built in a way to compile for web components in Svelte, which at least admits the need to address them, he tells you it's not recommended.

Thread Thread
paulmaly profile image

It's just a nice to have thing. Svelte is a compiler, so it can just change a target of compilation to WC. But not really many people in the community really use this opportunity.