Registry / devops / webpack-config-dump-plugin

webpack-config-dump-plugin

JSON →
library3.0.3jsnpmunverified

A webpack plugin (v3.0.3, stable, low activity) that writes the resolved/compiled webpack configuration to a file on disk. Useful for debugging dynamic resolve aliases or making them visible to IDEs. Key differentiators: supports circular reference handling, configurable depth, and optional inclusion of function names and falsey values. Competing with webpack-merge's logging or custom config debugging but purpose-built for file output.

npm install webpack-config-dump-plugin
INSTALL
IMPORT
SIG · WEBPACK-CONFIG-DUM
W
webpack-config-dump-plugin
devopsjavascriptv3.0.3
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.

WebpackConfigDumpPlugin
import { WebpackConfigDumpPlugin } from 'webpack-config-dump-plugin'
import WebpackConfigDumpPlugin from 'webpack-config-dump-plugin'
Named export only; default export is not available.
WebpackConfigDumpPlugin
const { WebpackConfigDumpPlugin } = require('webpack-config-dump-plugin')
const WebpackConfigDumpPlugin = require('webpack-config-dump-plugin')
CJS destructured require works; direct assignment gives undefined.
WebpackConfigDumpPlugin
import { WebpackConfigDumpPlugin } from 'webpack-config-dump-plugin'
const WebpackConfigDumpPlugin = require('webpack-config-dump-plugin').default
No .default export; this pattern would give undefined.

Shows a minimal webpack config using the plugin with all available options to dump the resolved configuration.

// webpack.config.js const { WebpackConfigDumpPlugin } = require('webpack-config-dump-plugin'); const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js', }, plugins: [ new WebpackConfigDumpPlugin({ outputPath: './config-dumps', name: 'my-config.dump', depth: 4, keepCircularReferences: false, showFunctionNames: true, includeFalseValues: false, }), ], };
Debug
Known issues
breakingVersion 3 changed default behavior: empty objects and arrays are now excluded by default.
fix
Set includeFalseValues: true if you need the old behavior.
affects: >=3.0.0
breakingVersion 2 switched to ES module import – CJS require must be destructured.
fix
Use const { WebpackConfigDumpPlugin } = require('webpack-config-dump-plugin').
affects: >=2.0.0 <3.0.0
deprecateddepth option may be removed in future versions; keepCircularReferences overrides it.
fix
Use keepCircularReferences: true to dump entire config and ignore depth.
affects: >=3.0.0
gotchaIf you set keepCircularReferences: true, the depth option is ignored.
fix
Don't rely on depth when keepCircularReferences is true.
affects: >=3.0.0
Errors
Common errors & fixes
TypeError: webpackConfigDumpPlugin is not a constructor
Importing default export instead of named export.
fix
Use import { WebpackConfigDumpPlugin } from 'webpack-config-dump-plugin' or const { WebpackConfigDumpPlugin } = require(...)
Module not found: Error: Can't resolve 'webpack' in ...
Missing webpack peer dependency.
fix
Install webpack: npm install webpack --save-dev
Cannot read property 'length' of undefined
Dumping a non-object config entry (e.g., function) due to depth limit.
fix
Increase depth or set keepCircularReferences: true.
Upgrade
Version history
3.0.3latest on npm
Audit
Dependencies
webpackrequiredpeer dependency; plugin hooks into webpack build lifecycle
Agent activity
14 hits · last 30 days
node
12
Resources
webpack-config-dump-plugin — npm install webpack-config-dump-plugin · libregistry