Storybook addon to transpile and bundle node_modules

View on Github

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

CHANGELOG

Made by
  • benedfit
    benedfit
  • newhighsco-bot
    newhighsco-bot
0