@newhighsco/storybook-addon-transpile-modules
v2.0.39
Published
Storybook addon to transpile and bundle node_modules
Downloads
8,527
Readme
storybook-addon-transpile-modules
Storybook addon to transpile and bundle node_modules
Installation
Install Storybook and @newhighsco/storybook-addon-transpile-modules
:
yarn add -D storybook @newhighsco/storybook-addon-transpile-modules @storybook/react-webpack5
Usage
Create a .storybook/main.js
in your project:
// .storybook/main.js
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
const config = {
framework: '@storybook/react-webpack5',
addons: [
{
name: '@newhighsco/storybook-addon-transpile-modules',
options: {
transpileModules: ['@newhighsco/chipset']
}
}
]
}
export default config