Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use babel-code-frame to generate pretty SyntaxError messages.
A developer on my team spent more time than needed debugging a SyntaxError that was the result of attempting to minify es6 code that snuck into node_modules/. I think that by providing additional context on the failed file, we can help people be more productive. This change uses babel-code-frame to generate an error message that includes a few lines above/below the encountered SyntaxError.
- Loading branch information
Showing
3 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters