{"id":20830,"library":"webpack-source-map-support","title":"Webpack Source Map Support","description":"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.","status":"active","version":"2.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/azcn2503/webpack-source-map-support","tags":["javascript"],"install":[{"cmd":"npm install webpack-source-map-support","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-source-map-support","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-source-map-support","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for plugin integration","package":"webpack","optional":false},{"reason":"Runtime dependency injected into bundle for stack trace mapping","package":"source-map-support","optional":false}],"imports":[{"note":"CommonJS only; no ESM export available.","wrong":"import WebpackSourceMapSupport from 'webpack-source-map-support';","symbol":"WebpackSourceMapSupport","correct":"const WebpackSourceMapSupport = require('webpack-source-map-support');"}],"quickstart":{"code":"// webpack.config.js\nconst WebpackSourceMapSupport = require('webpack-source-map-support');\nmodule.exports = {\n  entry: './src/index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'bundle.js'\n  },\n  target: 'node',\n  devtool: 'source-map',\n  plugins: [\n    new WebpackSourceMapSupport()\n  ]\n};","lang":"javascript","description":"Shows how to add the plugin to webpack.config.js for Node.js target with source-map devtool."},"warnings":[{"fix":"Use webpack-source-map-support@latest or switch to source-map-support manual integration.","message":"Only supports Webpack 1.x; not compatible with Webpack 2+.","severity":"deprecated","affected_versions":"*"},{"fix":"Ensure no other global error handlers override the behavior.","message":"Plugin injects source-map-support globally; may conflict with other error handling libraries.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install source-map-support` to add it.","cause":"source-map-support is not installed as a dependency.","error":"Error: Cannot find module 'source-map-support'"},{"fix":"Install via `npm install webpack-source-map-support --save-dev`.","cause":"Package not installed or path incorrect.","error":"Module not found: Error: Can't resolve 'webpack-source-map-support'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}