Skip to content

Commit

Permalink
this worked on my machine
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jun 12, 2023
1 parent 7b54c8e commit ccd6813
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/presets/react-webpack/src/framework-preset-react-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (config, opti
return config;
}

const { default: ReactDocgenTypescriptPlugin } = await import(
'@storybook/react-docgen-typescript-plugin'
);
const { ReactDocgenTypeScriptPlugin } = await import('@storybook/react-docgen-typescript-plugin');

return {
...config,
plugins: [
...(config.plugins || []),
new ReactDocgenTypescriptPlugin({
new ReactDocgenTypeScriptPlugin({
...reactDocgenTypescriptOptions,
// We *need* this set so that RDT returns default values in the same format as react-docgen
savePropValueAsString: true,
Expand Down

0 comments on commit ccd6813

Please sign in to comment.