Adds babel as a Webpack5 compiler to Storybook


Keywords
storybook-addons, webpack5, babel
License
MIT
Install
npm install @storybook/addon-webpack5-compiler-babel@3.0.5

Documentation

@storybook/addon-webpack5-compiler-babel

This addon adds babel support to Storybook's webpack5 compiler. It adds the babel-loader to the webpack config and sets the babel-loader as the default loader for JavaScript and TypeScript files.

Installation

npx storybook@latest add @storybook/addon-webpack5-compiler-babel