Open ashleyyy94 opened 2 months ago
Hi! Any update on this issue? This is still occurring on 8.4.2 last I checked, thanks!
Manager assets are not built via webpack, but with esbuild instead, if I am correct. Therefore, whether the manager produces chunks or not is and was not really configurable in Storybook 7 and 8.
@ndelangen Did we change something in emitting manager files?
@ashleyyy94 Do you have any issues with bigger sb-manager file outputs?
Hi @valentinpalkovic, it does appear to be configurable though when we add/remove webpackFinal's configurations. Produces chunks when we add. And does not produce chunks when removed.
The issue we are facing is due to the size of the js files in sb-manager. We're using AWS Lambda to serve out Storybook and the response size limit is 2MB.
Describe the bug
After upgrading from 8.1.11 to 8.2 onwards, I noticed that sb-manager files no longer gets split into chunks by webpackFinal's configurations:
config.optimization = { ...config.optimization, splitChunks: { chunks: 'all', maxInitialRequests: Infinity, minSize: 30 * 1024, maxSize: 500 * 1024, }, };
Reproduction link
https://stackblitz.com/edit/github-xmmg5f?file=.storybook%2Fmain.ts
Reproduction steps
npm run build-storybook
System
Additional context
No response