Sapper Typescript ESBuild
This is a minimal Sapper project template, inspired by @babichjacob's
sapper-typescript-graphql-template, which uses
@rollup/plugin-babel, which are ditched in favor of
rollup-plugin-esbuild in this template to increase performance, while
svelte-check will type-check source files in parallel.
npm install npm run dev
npm run export
Server code minification is disabled if using Sapper
0.28.1or newer, due to a known issue with ESBuild (#3).
Normal comments inside
.sveltefiles are treated as docstrings by
svelte-check, leading to type errors (
'render' implicitly has return type 'any' because [...]), except the first comment.