Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@storybook/addon-webpack5-compiler-swc

storybookjs1.8mMIT3.0.0TypeScript support: included

Adds SWC as a Webpack5 compiler to Storybook

storybook-addons, webpack5, swc

readme

@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.

changelog

v3.0.0 (Fri Mar 14 2025)

💥 Breaking Change

Authors: 1


v2.1.0 (Wed Feb 12 2025)

🚀 Enhancement

  • Updating swc and storybook deps to fix punycode module deprecation warning #15 (@skitscha)

🐛 Bug Fix

Authors: 2


v2.0.0 (Mon Dec 30 2024)

💥 Breaking Change

Authors: 1


v1.0.6 (Mon Dec 30 2024)

🐛 Bug Fix

Authors: 1


v1.0.5 (Mon Jul 29 2024)

🐛 Bug Fix

Authors: 1


v1.0.4 (Thu Jun 20 2024)

🐛 Bug Fix

Authors: 1


v1.0.3 (Wed May 29 2024)

🐛 Bug Fix

Authors: 2


v1.0.2 (Mon Mar 11 2024)

🐛 Bug Fix

Authors: 1


v1.0.1 (Tue Feb 27 2024)

🐛 Bug Fix

Authors: 1


v1.0.0 (Thu Jan 04 2024)

💥 Breaking Change

⚠️ Pushed to main

Authors: 1