DEV Community

[Comment from a deleted post]
Collapse
 
pankajpatel profile image
Pankaj Patel

Good tips for the Sorybook David.

We recently upgraded to Webpack5 and it broke storybook like anything, took a long time fixing it.

Collapse
 
daviddalbusco profile image
David Dal Busco

Thank you for the feedback Pankaj!

Good to know about Webpack5.

Did you ejected the webpack configuration to customize it or you had even trouble with the default configuration?

Collapse
 
pankajpatel profile image
Pankaj Patel

I don't think, there is need to eject configs on Storybook; you can customize pretty much everything from .storybook/main.js

Though the main trouble was to find and manually add the needed polyfils, as webpack no longer adds them by default from v5.

Currently, the project's config and storybook's config for webpack are similar but copies. I can live with the copies for now.

 
daviddalbusco profile image
David Dal Busco

Ah polyfill, that explains why I did not had any issue 😉.

Thanks for the feedback.