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

Commits on Mar 15, 2018

  1. Configuration menu
    Copy the full SHA
    c9f1545 View commit details
    Browse the repository at this point in the history
  2. 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.
    gdborton committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    096b179 View commit details
    Browse the repository at this point in the history