@newhighsco/storybook-addon-transpile-modules

2.0.39 • Public • Published

storybook-addon-transpile-modules NPM version

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

Readme

Keywords

none

Package Sidebar

Install

npm i @newhighsco/storybook-addon-transpile-modules

Weekly Downloads

1,057

Version

2.0.39

License

ISC

Unpacked Size

4.58 kB

Total Files

4

Last publish

Collaborators

  • benedfit
  • newhighsco-bot