项目作者: tommywalkie

项目描述 :
Sapper template with ESBuild and TypeScript
高级语言: TypeScript
项目地址: git://github.com/tommywalkie/sapper-typescript-esbuild-template.git
创建时间: 2020-09-07T15:09:09Z
项目社区:https://github.com/tommywalkie/sapper-typescript-esbuild-template

开源协议:MIT License

下载


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

  1. npm install
  2. npm run dev

Export

  1. 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.