The goal with this template was to get the fullest, quickest, and most integrated development and debugging experience we could. We went with Snowpack because of the speed of the dev->save->recompile->reload loop. With unbundled development the browser updates are near instant. Read more about Snowpack here.
npx degit processtract/svelte-ts-snowpack-vscode
npm install
npm run dev (or select the 'Debug Application' configuration in VSCode and hit F5)
There are definitely some custom approaches in this template, but a few different projects were used as reference and we always want to give credit where credit is due. If you're looking for a place to start with your own setup, we'd recommend here:
There is an open issue for Svelte that we'll want to watch: Source map line numbers are wrong when using typescript. Once we see this implementation we'll likely need some changes here.
In the meantime, see if there is anything we can do with debugging the Svelte file themselves. Line numbers will be off in the actual Svelte files, but that's why a lot of functionality is handled elsewhere.