Closed thibpoullain closed 1 year ago
You’re showing me that you wrote some JavaScript code that only looks at the --development
argument and then you’re asking me why the --watch
argument doesn’t do anything. It doesn’t do anything because you didn’t write any code to make it do anything. This is not a problem with esbuild. If you want some code to read --watch
then you should write some code to read --watch
. I’m closing this issue because nothing is wrong with esbuild here.
I understand where the question came from, as I ended up here and someone else might I'll leave a more constructive reply:
thibpoullain, you're running your script directly through node using the esbuild API
node config/esbuild.config.mjs --watch --development
Which doesn't work the same as if you call the esbuild CLI which supports that argument
--watch Watch mode: rebuild on file system changes (stops when
stdin is closed, use "--watch=forever" to ignore stdin)
# Automatically rebuild when input files are changed
esbuild app.ts --bundle --watch
Regards
Hi there,
I'm on a Rails app, esbuild do the work very well, but I can't make the watch mode working.
This is my files :
The command build but stop :
I can't find the right syntax to make it right, can you help me ? :)
Thx a lot ! <3