Closed Swatinem closed 9 years ago
Hm, just some observations I made when running my own code through this:
The mapped locations for arrow functions are a lot nicer, and now even the expression inside the arrow function is correctly mapped, which is great:
Import and export statements (declarations) are now correctly mapped and reported.
BUT it also maps the return statement inside of re-exports (not the functions themselves though) so if you do not actually use those re-exports, they are reported as uncovered statements :-(
But I think the other improvements are worth it…
This fixes reporting of destructuring assignments for me. Before their statements were ignored, because the 'start' loc had no match. Now statement and line are correctly reported, although the column might be a bit off:
But its better than nothing