esbuild-runner
esbuild-runner copied to clipboard
Watch mode
Loving this tools. Makes using esbuild that bit easier.
One thing I would love, is a first class support for watching. I currently use nodemon to accomplish this, which works reasonably well, but wonder if this could be improved, by having esbuild runner do it all (and keeping it in memory):
yarn run nodemon --watch 'src/**/*' -e ts,tsx --exec 'dotenv -e=.env -- yarn run esr --cache src/main.ts'"
Esbuild-runner could try to use the same way that esmon took
Note that what esmon does is unreliable, see https://github.com/egoist/esmon/issues/5 for details (and suggested implementation).
I stumbled across tsx and it has watch mode!