Macil / browserify-hmr

Hot Module Replacement plugin for Browserify
MIT License
374 stars 26 forks source link

Capturing browserify errors #26

Open elsehow opened 8 years ago

elsehow commented 8 years ago

great tool, thank you for developing this

one feature i'd love to have is the injection of browserify errors (e.g. syntax errors) into my browser. figwheel has a little pop-up UI for syntax errors, but i would even do with something less fancy - just a console.log() statement like the others that browserify-HMR makes. this would prevent me from checking my terminal. (presently, code simply doesn't reload on a syntax error).

Macil commented 7 years ago

redbox-react does something like this, but specifically for runtime errors in React components. This makes me wonder if this type of functionality could be better in a separate browserify or babel code transform instead of being another browserify-hmr option.