evanw / node-source-map-support

Adds source map support to node.js (for stack traces)
MIT License
2.16k stars 222 forks source link

Replace source-map with @jridgewell/trace-mapping #318

Open onigoetz opened 2 years ago

onigoetz commented 2 years ago

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

SimenB commented 10 months ago

@LinusU thoughts on this? 🙂