This is an example of an (almost) minimal Svelte app. Since Svelte is a compiler, it requires a bundler with plugin. I used esbuild for this, with the esbuild-svelte plugin.
esbuild
esbuild-svelte
To install and build:
$ npm install $ npm run build