Parent: main.js|ts configuration
Type:
Configures how Storybook handles TypeScript files.
check
Type: boolean
Optionally run fork-ts-checker-webpack-plugin. Note that because this uses a Webpack plugin, it is only available when using the Webpack builder.
checkOptions
Type: CheckOptions
Options to pass to fork-ts-checker-webpack-plugin
, if enabled. See docs for available options.
reactDocgen
Type: 'react-docgen' | 'react-docgen-typescript' | false
Default:
false
: if@storybook/react
is not installed'react-docgen'
: if@storybook/react
is installed
Configures which library, if any, Storybook uses to parse React components, react-docgen or react-docgen-typescript. Set to false
to disable parsing React components. react-docgen-typescript
invokes the TypeScript compiler, which makes it slow but generally accurate. react-docgen
performs its own analysis, which is much faster but incomplete.
reactDocgenTypescriptOptions
Type: ReactDocgenTypescriptOptions
Configures the options to pass to react-docgen-typescript-plugin
if react-docgen-typescript
is enabled. See docs for available options.
skipCompiler
Type: boolean
Disable parsing of TypeScript files through the compiler, which is used for Webpack5.