sapper-typescript-esbuild-template

Sapper Typescript Esbuild Template

Sapper template with ESBuild and TypeScript

Sapper Typescript ESBuild

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.

Getting started

npm install
npm run dev

Export

npm run export

Caveats

  • 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 by svelte-check, leading to type errors ('render' implicitly has return type 'any' because [...]), except the first comment.

Top categories

Loading Svelte Themes