Replies: 2 comments
-
That's crazy v8 should be faster than v6 pretty much across the board. What framework are you using? Common sources of slowness:
Do you have a reproduction you can share? |
Beta Was this translation helpful? Give feedback.
-
using webpack 5 I'm afraid I can't share the reproduction, but could get on a google meet and walk through it if that's something you'd be willing to do! In absence of that, I can give you some more info. Most of the time is being taken by docgen (if I disable docs, it's way, way faster). While writing this response, I've found that adding It feels to me like something is going through node_modules that shouldn't be, but my glob is Separately, I was trying to get us moved from babel -> swc in the hope that would help us, but currently having a sad time because craco doesn't seem to have a proper storybook preset, and Benchmarks This is our config:
tsconfig.json
tsconfig.extend.json
babel.config.json
relevant dependencies:
|
Beta Was this translation helpful? Give feedback.
-
Summary
On v6, our storybook would build in about 1.2 mins.
When I try to move to v8, that jumps to about 6 mins 'for preview' (i.e. before the build is useful).
Do you have any suggestions on how to profile the build, to start understanding what the cause is here?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions