by nicoburns · 5y ago · 0 comments
In development, use an index.html that loads it directly from the filesystem, using a single-pass annotation remover such as https://github.com/alangpierce/sucrase A single-pass transpiler doesn't build an AST, instead just looping over everything once, which will surely make it faster than esbuild.
In production, use a bundler like snowpack.
And saying it quite a lot in this thread.
1: https://www.typescriptlang.org/docs/handbook/intro-to-js-ts....