{"id":20573,"library":"storybook-dep-webpack-plugin","title":"Storybook Dep Webpack Plugin","description":"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.","status":"active","version":"1.0.7","language":"javascript","source_language":"en","source_url":"https://github.com/atanasster/storybook-dep-webpack-plugin","tags":["javascript","addon","dependencies","webpack","storybook"],"install":[{"cmd":"npm install storybook-dep-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add storybook-dep-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add storybook-dep-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CommonJS only; no default ESM export provided.","wrong":"import DependenciesPlugin from 'storybook-dep-webpack-plugin';","symbol":"DependenciesPlugin","correct":"const DependenciesPlugin = require('storybook-dep-webpack-plugin');"},{"note":"CommonJS default import; constructor optionally accepts options object.","wrong":"new DependenciesPlugin({})","symbol":"DependenciesPlugin","correct":"new DependenciesPlugin()"},{"note":"Package exports a single constructor as default; named destructuring fails.","wrong":"const { DependenciesPlugin } = require('storybook-dep-webpack-plugin');","symbol":"DependenciesPlugin","correct":"const DependenciesPlugin = require('storybook-dep-webpack-plugin');"}],"quickstart":{"code":"const DependenciesPlugin = require('storybook-dep-webpack-plugin');\n\nmodule.exports = {\n  stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],\n  webpack: async (config) => ({\n    ...config,\n    plugins: [\n      ...config.plugins,\n      new DependenciesPlugin({ filter: /.*/ })\n    ]\n  }),\n};","lang":"javascript","description":"Registers DependenciesPlugin in Storybook main.js using webpack config function."},"warnings":[{"fix":"Add 'storybook-addon-deps' to your Storybook addons and configure panel.","message":"Requires companion storybook-addon-deps addon to be installed and configured.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Ensure your project uses Storybook with webpack (default).","message":"Only works with Storybook's webpack build; incompatible with other build tools.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Test other plugins after adding; order may matter.","message":"Plugin modifies default webpack stats, potentially affecting other plugins.","severity":"gotcha","affected_versions":">=1.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 storybook-dep-webpack-plugin","cause":"Package not installed.","error":"Error: Cannot find module 'storybook-dep-webpack-plugin'"},{"fix":"const DependenciesPlugin = require('storybook-dep-webpack-plugin');","cause":"Using destructured import from require.","error":"TypeError: DependenciesPlugin is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}