Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.06 KB

main-config-swc.md

File metadata and controls

30 lines (19 loc) · 1.06 KB
title
swc

Parent: main.js|ts configuration

Type: (config: swc.Options, options: Options) => swc.Options | Promise<swc.Options>

Customize Storybook's SWC setup for Webpack-based projects enabled via the @storybook/addon-webpack5-compiler-swc addon based on the supported frameworks, except Angular, Create React App, Ember.js and Next.js.

<CodeSnippets paths={[ 'common/main-config-swc.js.mdx', 'common/main-config-swc.ts.mdx', ]} />

SWC.Options

The options provided by SWC are only applicable if you've enabled the @storybook/addon-webpack5-compiler-swc addon.

Options

Type: { configType?: 'DEVELOPMENT' | 'PRODUCTION' }

There are other options that are difficult to document here. Please introspect the type definition for more information.