Addon Webpack5 Compiler Babel

Adds babel as a Webpack5 compiler to Storybook

View on Github

@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

Requirements

  • Storybook@>=10.0.0

Version compatibility

Addon coverage version Storybook version
^4.0.0 ^10.0.0
^3.0.0 ^9.0.0
^3.0.0 ^8.0.0
Made by
  • ndelangen
    ndelangen
  • shilman
    shilman
  • tmeasday
    tmeasday
  • ghengeveld
    ghengeveld
  • winkervsbecks
    winkervsbecks
  • yannbf
    yannbf
Work with
    HTML
    Preact
    React
    Svelte
    Vue
    Web Components
Tags