Registry /
devops / webpack-config-dump-plugin
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
muslnode 18–226 runs
build_error
glibcnode 18–226 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,
}),
],
};
Errors
Common errors & fixes
TypeError: webpackConfigDumpPlugin is not a constructor
Importing default export instead of named export.
fixUse import { WebpackConfigDumpPlugin } from 'webpack-config-dump-plugin' or const { WebpackConfigDumpPlugin } = require(...) Module not found: Error: Can't resolve 'webpack' in ...
Missing webpack peer dependency.
fixInstall 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.
fixIncrease depth or set keepCircularReferences: true.
Audit
Dependencies
webpackrequiredpeer dependency; plugin hooks into webpack build lifecycle