Join live session: Thu, 11am EDT, Storybook 9 release & AMA

Addon Webpack5 Compiler SWC

Adds SWC as a Webpack5 compiler to Storybook

View on Github

@storybook/addon-webpack5-compiler-swc

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

Installation

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

Configuration

Please go to https://storybook.js.org/docs/api/main-config-swc for more information about how to configure SWC.

Made by
  • ndelangen
    ndelangen
  • shilman
    shilman
  • tmeasday
    tmeasday
  • ghengeveld
    ghengeveld
  • winkervsbecks
    winkervsbecks
  • yannbf
    yannbf
Work with
    HTML
    Preact
    React
    Svelte
    Vue
    Web Components
Tags