New
Storybook’s Visual Tests addon enters betaVisual test with Chromatic
Star82,099
Back to integrations
Add your integration
Categories
  • ⭐️ Popular
  • 🧩 Essentials
  • 🛠 Code
  • ⚡️ Data & state
  • ✅ Test
  • 💅 Style
  • 🎨 Design
  • ⚙️ Appearance
  • 🗄 Organize
How to install addons Create an addon
Addon Webpack5 Compiler SWC
Adds SWC as a Webpack5 compiler to Storybook
npm install @storybook/addon-webpack5-compiler-swc
Last updated about 2 months ago
5k
Downloads per week
Readme 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

npm install --save-dev @storybook/addon-webpack5-compiler-swc

Usage

// .storybook/main.js

const config = {
  addons: ["@storybook/addon-webpack5-compiler-swc"],
};

export default config;

Configuration

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

Join the community
6,514 developers and counting
WhyWhy StorybookComponent-driven UI
Open source software
Storybook

Maintained by
Chromatic
Special thanks to Netlify and CircleCI