Registry / devops / storybook-dep-webpack-plugin

storybook-dep-webpack-plugin

JSON →
library1.0.7jsnpmunverified

A webpack plugin (v1.0.7) that collects dependency data from Storybook stories for use with storybook-addon-deps. Designed to work exclusively with Storybook's webpack configuration, it allows filtering on stories, excluding modules, controlling depth of dependency resolution, and picking specific module properties. Maintained as an accessory to the addon ecosystem. No active release cadence observed.

npm install storybook-dep-webpack-plugin
INSTALL
IMPORT
SIG · STORYBOOK-DEP-WEBP
S
storybook-dep-webpack-plugin
devopsjavascriptv1.0.7
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.

DependenciesPlugin
const DependenciesPlugin = require('storybook-dep-webpack-plugin');
import DependenciesPlugin from 'storybook-dep-webpack-plugin';
CommonJS only; no default ESM export provided.
DependenciesPlugin
new DependenciesPlugin()
new DependenciesPlugin({})
CommonJS default import; constructor optionally accepts options object.
DependenciesPlugin
const DependenciesPlugin = require('storybook-dep-webpack-plugin');
const { DependenciesPlugin } = require('storybook-dep-webpack-plugin');
Package exports a single constructor as default; named destructuring fails.

Registers DependenciesPlugin in Storybook main.js using webpack config function.

const DependenciesPlugin = require('storybook-dep-webpack-plugin'); module.exports = { stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'], webpack: async (config) => ({ ...config, plugins: [ ...config.plugins, new DependenciesPlugin({ filter: /.*/ }) ] }), };
Debug
Known issues
gotchaRequires companion storybook-addon-deps addon to be installed and configured.
fix
Add 'storybook-addon-deps' to your Storybook addons and configure panel.
affects: >=1.0
gotchaOnly works with Storybook's webpack build; incompatible with other build tools.
fix
Ensure your project uses Storybook with webpack (default).
affects: >=1.0
gotchaPlugin modifies default webpack stats, potentially affecting other plugins.
fix
Test other plugins after adding; order may matter.
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'storybook-dep-webpack-plugin'
Package not installed.
fix
npm install --save-dev storybook-dep-webpack-plugin
TypeError: DependenciesPlugin is not a constructor
Using destructured import from require.
fix
const DependenciesPlugin = require('storybook-dep-webpack-plugin');
Upgrade
Version history
1.0.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
storybook-dep-webpack-plugin — npm install storybook-dep-webpack-plugin · libregistry