How to create Web Components Using Sveltejs

One of the things that Svelte makes easy is creating components for use in your own applications. But if you want use them with other frameworks or publish them to npm you can do this too.

There’s a publish-svelte CLI which makes this trivial, or you can set up your build in webpack or rollup etc as explained below.

1 Like