Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty syntax errors #45

Merged
merged 2 commits into from
Mar 15, 2018
Merged

Pretty syntax errors #45

merged 2 commits into from
Mar 15, 2018

Conversation

gdborton
Copy link
Owner

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.

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.
@coveralls
Copy link

coveralls commented Mar 15, 2018

Coverage Status

Coverage decreased (-0.5%) to 96.732% when pulling 096b179 on pretty-syntax-errors into 240118c on master.

@gdborton gdborton merged commit d667311 into master Mar 15, 2018
@gdborton gdborton deleted the pretty-syntax-errors branch March 15, 2018 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants