Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: improve Storybook performance #1853

Merged
merged 8 commits into from
Sep 11, 2024
Merged

perf: improve Storybook performance #1853

merged 8 commits into from
Sep 11, 2024

Conversation

larsrickert
Copy link
Collaborator

@larsrickert larsrickert commented Sep 11, 2024

Update Storybook to version 8.3.0-alpha.5 which includes a bug fix which reduced the bundle size of our build Storybook from 26MB to 6MB and reduced build time from 37s to 10s.

This change also significantly improves the loading performance of the onyx Storybook.

If you are interested, the bug was caused by the vue-component-meta package which included ALL schema definitions for props, events, slots and exposed so if e.g. HTMLElement was used, it included all nested props, JSDocs etc. although they are not needed/used by Storybook, see Storybook PR

Checklist

  • A changeset is added with npx changeset add if your changes should be released as npm package (because they affect the library usage)

@larsrickert larsrickert requested a review from a team as a code owner September 11, 2024 12:14
Copy link

changeset-bot bot commented Sep 11, 2024

🦋 Changeset detected

Latest commit: 207a353

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sit-onyx/storybook-utils Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@larsrickert larsrickert changed the title Perf/storybook beta perf: improve Storybook performance Sep 11, 2024
JoCa96
JoCa96 previously approved these changes Sep 11, 2024
This is an auto-generated pull request. All Playwright screenshots have
been updated.

Co-authored-by: larsrickert <67898185+larsrickert@users.noreply.github.com>
larsrickert and others added 2 commits September 11, 2024 15:17
This is an auto-generated pull request. All Playwright screenshots have
been updated.

Co-authored-by: larsrickert <67898185+larsrickert@users.noreply.github.com>
@larsrickert larsrickert enabled auto-merge (squash) September 11, 2024 14:41
@larsrickert larsrickert merged commit e2648b6 into main Sep 11, 2024
19 checks passed
@larsrickert larsrickert deleted the perf/storybook-beta branch September 11, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants