Closed Liero closed 6 years ago
Within the scope of watchify this behaviour is not unexpected. The issue is that you don't handle events and that node does not forward error events.
You can find a great explanation here: https://stackoverflow.com/questions/21771220/error-handling-with-node-js-streams?answertab=votes#tab-top
This behaviour was also explained in this browserify issue: https://github.com/browserify/browserify/issues/1487#issuecomment-173357516
With browserify this works:
but when I includude wachify plugin, the error callbacks are not called.
I believe this is an unexpected behavior.
Current workaround is to include
on('error', ..)
directly afrerbundler.bundle()