Registry / devops / devtools-ignore-webpack-plugin

devtools-ignore-webpack-plugin

JSON →
library0.2.0jsnpmunverified

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.

npm install devtools-ignore-webpack-plugin
INSTALL
IMPORT
SIG · DEVTOOLS-IGNORE-WE
D
devtools-ignore-webpack-plugin
devopsjavascriptv0.2.0
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.

DevToolsIgnorePlugin
const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin');
import DevToolsIgnorePlugin from 'devtools-ignore-webpack-plugin';
Package does not export ES module; use CommonJS require.
DevToolsIgnorePlugin
import DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin');
import DevToolsIgnorePlugin from 'devtools-ignore-webpack-plugin';
TypeScript users must use `import = require` for CJS modules.
DevToolsIgnorePlugin
const { DevToolsIgnorePlugin } = require('devtools-ignore-webpack-plugin');
const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin').DevToolsIgnorePlugin;
Plugin is default export, not named export. No named export exists.

Shows basic setup: import plugin, add to webpack config with devtool, enable sourcemaps, and customize ignore filters.

const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin'); module.exports = { // Enable sourcemaps (inline not supported) devtool: 'source-map', plugins: [ new DevToolsIgnorePlugin({ shouldIgnorePath: (path) => { // Ignore all node_modules and webpack bootstrap return path.includes('/node_modules/') || path.includes('/webpack/'); }, isSourceMapAsset: (name) => name.endsWith('.map'), }), ], };
Debug
Known issues
gotchaInline sourcemap options (e.g., 'inline-source-map') are not supported and will silently fail to add ignore list.
fix
Use a non-inline devtool like 'source-map' or 'hidden-source-map'.
affects: >=0.1.0
breakingWebpack 4 is not supported; plugin only works with Webpack 5.
fix
Upgrade to Webpack 5.
affects: >=0.1.0
gotchaPlugin does nothing if devtool is not set or set to false; no error is thrown.
fix
Ensure devtool is set to a non-inline sourcemap option.
affects: >=0.1.0
deprecatedCurrently no deprecated features; stability is low.
fix
Not applicable.
affects: 0.2.0
Errors
Common errors & fixes
Cannot find module 'devtools-ignore-webpack-plugin'
Package not installed or installed as devDependency but not in node_modules.
fix
npm install --save-dev devtools-ignore-webpack-plugin
TypeError: devtoolsIgnorePlugin is not a constructor
Importing as named export instead of default.
fix
Use: const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin');
Module not found: Error: Can't resolve 'webpack'
Webpack 5 not installed as peer dependency.
fix
npm install --save-dev webpack@5
Upgrade
Version history
0.2.0latest on npm
Audit
Dependencies
webpackrequiredPeer dependency: plugin operates on Webpack compilation hooks
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources