{"id":19443,"library":"devtools-ignore-webpack-plugin","title":"devtools-ignore-webpack-plugin","description":"A Webpack 5 plugin (v0.2.0, latest) that adds `x_google_ignoreList` to sourcemaps, allowing Chrome DevTools to hide library/framework code from the call stack. Low release cadence, only two commits. Differentiators: small, focused, no dependencies beyond Webpack 5 peer dependency. Originally extracted from Angular CLI. Requires sourcemaps enabled (inline not supported). Ships TypeScript types. Node >=16.14.2 required.","status":"active","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/mondaychen/devtools-ignore-webpack-plugin","tags":["javascript","webpack","plugin","devtools","typescript"],"install":[{"cmd":"npm install devtools-ignore-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add devtools-ignore-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add devtools-ignore-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: plugin operates on Webpack compilation hooks","package":"webpack","optional":false}],"imports":[{"note":"Package does not export ES module; use CommonJS require.","wrong":"import DevToolsIgnorePlugin from 'devtools-ignore-webpack-plugin';","symbol":"DevToolsIgnorePlugin","correct":"const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin');"},{"note":"TypeScript users must use `import = require` for CJS modules.","wrong":"import DevToolsIgnorePlugin from 'devtools-ignore-webpack-plugin';","symbol":"DevToolsIgnorePlugin","correct":"import DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin');"},{"note":"Plugin is default export, not named export. No named export exists.","wrong":"const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin').DevToolsIgnorePlugin;","symbol":"DevToolsIgnorePlugin","correct":"const { DevToolsIgnorePlugin } = require('devtools-ignore-webpack-plugin');"}],"quickstart":{"code":"const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin');\n\nmodule.exports = {\n  // Enable sourcemaps (inline not supported)\n  devtool: 'source-map',\n  plugins: [\n    new DevToolsIgnorePlugin({\n      shouldIgnorePath: (path) => {\n        // Ignore all node_modules and webpack bootstrap\n        return path.includes('/node_modules/') || path.includes('/webpack/');\n      },\n      isSourceMapAsset: (name) => name.endsWith('.map'),\n    }),\n  ],\n};","lang":"javascript","description":"Shows basic setup: import plugin, add to webpack config with devtool, enable sourcemaps, and customize ignore filters."},"warnings":[{"fix":"Use a non-inline devtool like 'source-map' or 'hidden-source-map'.","message":"Inline sourcemap options (e.g., 'inline-source-map') are not supported and will silently fail to add ignore list.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Upgrade to Webpack 5.","message":"Webpack 4 is not supported; plugin only works with Webpack 5.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Ensure devtool is set to a non-inline sourcemap option.","message":"Plugin does nothing if devtool is not set or set to false; no error is thrown.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Not applicable.","message":"Currently no deprecated features; stability is low.","severity":"deprecated","affected_versions":"0.2.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev devtools-ignore-webpack-plugin","cause":"Package not installed or installed as devDependency but not in node_modules.","error":"Cannot find module 'devtools-ignore-webpack-plugin'"},{"fix":"Use: const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin');","cause":"Importing as named export instead of default.","error":"TypeError: devtoolsIgnorePlugin is not a constructor"},{"fix":"npm install --save-dev webpack@5","cause":"Webpack 5 not installed as peer dependency.","error":"Module not found: Error: Can't resolve 'webpack'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}