4 ms·
Here's my suggestion if you want faster builds: In development, use an index.html that loads it directly from the filesystem, using a single-pass annotation re
by crazypython 6y ago
Here's my suggestion if you want faster builds:
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 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.
- ljm 6y agoWhat you're saying there is: in development, use sucrase. In production, use sucrase. And saying it quite a lot in this thread.
- crazypython 6y agoSorry, I meant to say use snowpack.