Registry / devops / webpack-source-map-support

webpack-source-map-support

JSON →
library2.0.1jsnpmunverified

A Webpack plugin that automatically adds `source-map-support` to your bundle so errors in Node.js applications built with Webpack include mapped stack traces. Version 2.0.1 is stable and requires Webpack 1.x. It injects the dependency at build time, simplifying configuration compared to manual setup. Lightweight with no runtime overhead beyond the source-map-support library itself.

npm install webpack-source-map-support
INSTALL
IMPORT
SIG · WEBPACK-SOURCE-MAP
W
webpack-source-map-support
devopsjavascriptv2.0.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebpackSourceMapSupport
const WebpackSourceMapSupport = require('webpack-source-map-support');
import WebpackSourceMapSupport from 'webpack-source-map-support';
CommonJS only; no ESM export available.

Shows how to add the plugin to webpack.config.js for Node.js target with source-map devtool.

// webpack.config.js const WebpackSourceMapSupport = require('webpack-source-map-support'); module.exports = { entry: './src/index.js', output: { path: __dirname + '/dist', filename: 'bundle.js' }, target: 'node', devtool: 'source-map', plugins: [ new WebpackSourceMapSupport() ] };
Debug
Known issues
deprecatedOnly supports Webpack 1.x; not compatible with Webpack 2+.
fix
Use webpack-source-map-support@latest or switch to source-map-support manual integration.
affects: *
gotchaPlugin injects source-map-support globally; may conflict with other error handling libraries.
fix
Ensure no other global error handlers override the behavior.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'source-map-support'
source-map-support is not installed as a dependency.
fix
Run `npm install source-map-support` to add it.
Module not found: Error: Can't resolve 'webpack-source-map-support'
Package not installed or path incorrect.
fix
Install via `npm install webpack-source-map-support --save-dev`.
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies
webpackrequiredPeer dependency for plugin integration
source-map-supportrequiredRuntime dependency injected into bundle for stack trace mapping
Agent activity
6 hits · last 30 days
node
6
Resources
webpack-source-map-support — npm install webpack-source-map-support · libregistry