DevanB / build-error-notifier

Build error notifications for your build toolchain. Supports browserify, jasmine-node (test runner), karma (test runner), node-sass, tsc (typescript compiler), and tslint. More to come.
http://npm.im/build-error-notifier
MIT License
1 stars 1 forks source link

Support SyntaxError for browserify too #3

Open joecritch opened 7 years ago

joecritch commented 7 years ago

I noticed that browserify was actually producing errors like this...

SyntaxError: /Users/user_name/Sites/project/src/app.js: Unexpected token, expected jsxTagEnd (15:38) while parsing file:

... so I've changed the regex to match both. It uses non-capturing groups and a boolean.

Feel free to edit to add to the test file before merging. I didn't have time :(