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

Node 11.12.0 ESM mangling line numbers #785

Closed
CodeOtter opened this issue Apr 23, 2019 · 3 comments
Closed

Node 11.12.0 ESM mangling line numbers #785

CodeOtter opened this issue Apr 23, 2019 · 3 comments
Labels

Comments

@CodeOtter
Copy link

CodeOtter commented Apr 23, 2019

My package.json has the following entries

  "esm": {
    "cjs": true,
     sourceMap: true
  },
  "ava": {
    "require": [
      "esm"
    ]
  },

When I run ava, errors return extreme wrong line numbers.

No .babelrc exists. No other configuration override exists.

I did not have this problem a week ago. :( I moved to ESM from Babel so I could get away from the utter insanity that is permanently-alpha transpiling and endlessly mangled line numbers, but alas, it found me here, too :(

@CodeOtter
Copy link
Author

Aha! This is a problem between the interaction of nyc, esm, and ava

Going to close ticket, but leave it here in case some poor soul stumbles across this problem in the future!

@jdalton
Copy link
Member

jdalton commented Apr 23, 2019

How did you solve the issue?

@CodeOtter
Copy link
Author

CodeOtter commented Apr 28, 2019

I didn't and, instead, I've opened up a new request for #790 to allow user overrides of .terserrc to turn off compress and mangle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants