- Bundles a TS app
- Rebuilds when a file changes
- Handles SVGs and CSS imports
- Includes the JS and CSS that esbuild outputs via an HTML file
- CSS via Emotion
- Actually running
tscseparately for type checking - A normal
bin/buildfile that just runsesbuildonce (in other words, this is dev only) - Serve things in dev via a webserver. Just do
open dist/index.htmlafter you have runbin/watch
Run bin/watch to run esbuild and watch for changes on the file system.
NOTE: The index.html file is not part of esbuild but will be copied over when bin/watch is first run.