digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
68 stars 34 forks source link

re-enable `react-docgen-typescript` in Storybook #2173

Open Barsnes opened 4 days ago

Barsnes commented 4 days ago

After testing and debugging, using react-docgen-typescript locally makes Storybook unbelievably slow.

I changed our setup to only use it in production, and locally use react-docgen, which has no performance issues. This is the same bug as reported in https://github.com/storybookjs/storybook/issues/28269.

When the issue above is resolved, we can change to use this:

reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
  compilerOptions: {
    allowSyntheticDefaultImports: false,
    esModuleInterop: false,
  },
  tsconfigPath: resolve(__dirname, '../../packages/react/tsconfig.json'),
}