Closed jedrichards closed 9 years ago
You need an error
handler on the stream returned by bundle()
– that's just how streams work. You should try https://github.com/zertosh/errorify
Ah yes, of course a stream error handler ... been so long I'd done any stream stuff that I'd forgot about that sort of thing. Thanks so much.
Hi
My watchify+browserify script is exiting with a non-zero error code when something goes awry with the browserify transpilation. I'm happy with this during normal (non-watchified) browserfication, its appropriate that it bombs out, but during development I'd rather the watch stayed alive so I don't need to restart it each time.
An example of an error that causes it to explode might be mistyping the path to a module.
How can I handle this error?
I'm not sure if the fact that I'm using babelify, and also calling my browserify script itself with babel-node is relevant. I suspect not ...
Here's my watchify+browserify script,