This is a minimal Sapper project template, inspired by @babichjacob's sapper-typescript-graphql-template
, which uses @rollup/plugin-typescript
and @rollup/plugin-babel
, which are ditched in favor of rollup-plugin-esbuild
in this template to increase performance, while tsc
and 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.1
or newer, due to a known issue with ESBuild (#3). -
Normal comments inside
<script>
tags in.svelte
files are treated as docstrings bysvelte-check
, leading to type errors ('render' implicitly has return type 'any' because [...]
), except the first comment.