Closed mattdesl closed 9 years ago
"Unexpected Token"
Looks like browserify/acorn uses syntax-error, which has err.annotated for pretty-printing. Further, it uses non-standard err.line and err.column.
err.annotated
err.line
err.column
This PR takes a stab at normalizing the result for babelify and regular old browserify. This way non-babelify users can get nice errors too:
:+1:
Thanks!
Published as errorify@0.2.0
errorify@0.2.0
2 looks great with babelify, but still a bit sad with regular browserify, just showing
"Unexpected Token"
in the browser.Looks like browserify/acorn uses syntax-error, which has
err.annotated
for pretty-printing. Further, it uses non-standarderr.line
anderr.column
.This PR takes a stab at normalizing the result for babelify and regular old browserify. This way non-babelify users can get nice errors too: