Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 900 Bytes

main-config-babel.md

File metadata and controls

36 lines (22 loc) · 900 Bytes
title
babel

Parent: main.js|ts configuration

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

Customize Storybook's Babel setup.

💡 Addon authors should use babelDefault instead, which is applied to the preview config before any user presets have been applied.

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

Babel.Config

See Babel docs.

Options

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

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