esbuild-runner icon indicating copy to clipboard operation
esbuild-runner copied to clipboard

Watch mode

Open dbousamra opened this issue 3 years ago • 3 comments

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'"

dbousamra avatar Mar 25 '21 03:03 dbousamra

Esbuild-runner could try to use the same way that esmon took

Olyno avatar Apr 18 '21 04:04 Olyno

Note that what esmon does is unreliable, see https://github.com/egoist/esmon/issues/5 for details (and suggested implementation).

IlyaSemenov avatar May 31 '21 08:05 IlyaSemenov

I stumbled across tsx and it has watch mode!

nicholas-qiao avatar Aug 30 '22 03:08 nicholas-qiao