Provides source map support for stack traces in Node.js and browsers via the V8 stack trace API. Current stable version: 0.5.21. Uses the Mozilla source-map module to replace paths and line numbers of source-mapped files with originals. Key differentiator: works with any compile-to-JS language, supports both CLI (-r) and programmatic usage, and includes browser support via bundled script. Maintained by Evan Wallace, releases are infrequent but stable.
npm install source-map-supportNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows CommonJS and ESM installation, CLI usage, options, and browser setup for source map support.
Upgrade to >=0.5.16
Call install() at the very top of your entry file, before any other code
Not applicable; this is a design limitation
Update source-map-support to >=0.5.16
Use the Node-specific module (require('source-map-support')) instead of browser versionAdd --require source-map-support/register as the first CLI argument or require it at the very top of the entry file