node-source-map-support icon indicating copy to clipboard operation
node-source-map-support copied to clipboard

Replace source-map with @jridgewell/trace-mapping

Open onigoetz opened this issue 3 years ago • 1 comments

The trace-mapping module is faster than source-map in every benchmark https://github.com/jridgewell/trace-mapping#benchmarks

It's also being adopted by many packages across the ecosystem (Jest, Babel, Terser at least have included it already) And it doesn't need to be async like source-map 0.7.*

This would replace #286 and #206

Regarding the changes in this PR

  • This project seems to have a wide compatibility with older Node.js versions, is that still needed ?
  • I tested the changes with the browsers tests but they failed, but I also tested /without/ my changes and it still failed (on Firefox, does it only work on some browsers ? )

onigoetz avatar Jun 01 '22 20:06 onigoetz

@LinusU thoughts on this? 🙂

SimenB avatar Sep 09 '23 07:09 SimenB