This is the example code for the article I wrote on Snowpack v2 and Svelte.
Snowpack with Svelte, Typescript and Tailwind CSS is a very pleasant surprise
The example is based on Snowpack's Svelte CSA and includes the following.