node-sourcemap

enable source-map in node error stack

Usage no npm install needed!

<script type="module">
  import nodeSourcemap from 'https://cdn.skypack.dev/node-sourcemap';
</script>

README

Sourcemap Polyfill for nodejs

This module add support for source map on error stack even with node > 0.11 where Error.prepareStackTrace is undefined. For instance the module https://github.com/evanw/node-source-map-support doesn't work when Error.prepareStacktrace is undefined.

Dependencies