Replies: 1 comment
-
This was implemented and released in 8.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Consolidate all of Storybook's core packages into a single package to reduce install size, dependency conflicts, security warnings, hoisting issues, and unnecessary APIs
Problem Statement
Storybook’s dependency setup is a mess. Our monorepo currently contains ~75 packages, which all depend on one another in a tangled structure. Installing React Storybook into an empty project brings ~120M and 400+ packages with it. This leads to a variety of problems, all of which frustrate users and reflect badly on Storybook:
Non-goals
Implementation
Must Haves
@storybook/core
. It will contain and expose all of the functionality of the packages it subsumes.addon-kit
and addon authoring documentation should be updated to use the core. It should be made clear that this will create addons for 8.x and above (where x is the minor we release this change in). An addon migration guide for existing addon authors to adapt to these changes.Variable scope
Prior Art
We have done this kind of shimming before in 8.0 where we consolidated various packages into the
manager-api
andpreview-api
packages. This is a more extreme version of that.Deliverables
See implementation section above
Risks
Because this involves moving lots of code, there are risks of:
Unresolved Questions
No response
Alternatives considered / Abandoned Ideas
No response
Beta Was this translation helpful? Give feedback.
All reactions