
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
storybook-dep-webpack-plugin
Advanced tools
A webpack plugin to collect dependencies data.
Works in conjunction with storybook-addon-deps
npm i -D storybook-dep-webpack-plugin
You can register the plugin in two different ways
main.js
webpack settings you will register the plugin:const DependenciesPlugin = require('storybook-dep-webpack-plugin');
module.exports = {
...
webpack: async (config, { configType }) => ({
...config,
plugins: [
...config.plugins,
new DependenciesPlugin()
]
}),
...
};
webpack.config.js
file, add and configure the plugin:const DependenciesPlugin = require('storybook-dep-webpack-plugin');
module.exports = ({ config, mode }) => {
...
config.plugins.push(new DependenciesPlugin());
...
return config;
};
filter - a RegExp or function to select the stories.
example:
config.plugins.push(new DependenciesPlugin({
filter: (resource) => {
return /\.(stories|story)\.[tj]sx?$/.test(resource) && resource.indexOf("Avatar") > -1;
}
}));
exclude - a RegExp for the modules to exclude.
example:
config.plugins.push(new DependenciesPlugin({
filter: /^@storybook|@babel/,
}));
maxLevels - How many levels deep to follow the dependencies.
example:
config.plugins.push(new DependenciesPlugin({
maxLevels: 10,
}));
pickProperties - An array of the props to pick from the module webpack data.
example:
config.plugins.push(new DependenciesPlugin({
pickProperties: ['id', 'name', 'request'],
}));
pickModuleProperties - An array of the props to pick from the module.module webpack data.
example:
config.plugins.push(new DependenciesPlugin({
pickModuleProperties: [],
}));
storybook-addon-deps
FAQs
A webpack plugin to inject storybook dependencies
The npm package storybook-dep-webpack-plugin receives a total of 367 weekly downloads. As such, storybook-dep-webpack-plugin popularity was classified as not popular.
We found that storybook-dep-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.