-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Core: Upgrade docs-mdx for smaller install #28552
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
- Upgraded
@storybook/docs-mdx
to4.0.0--canary.19.48b6c75.0
in/code/core/package.json
- Transitioned
@storybook/docs-mdx
to ESM-only, removing Babel - Replaced static import with dynamic import of
analyze
in/code/core/src/core-server/utils/StoryIndexGenerator.ts
- Optimized loading and execution of
analyze
function for better performance
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
☁️ Nx Cloud ReportCI is running/has finished running commands for commit f4b0bb5. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
be84deb
to
f3530d0
Compare
Closes N/A
What I did
Upgrade
@storybook/docs-mdx
to an ESM-only version that no longer uses babel and runs asynchronouslyChecklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
Fire up a sandbox and checks the docs/mdx stories
🦋 Canary release
This pull request has been released as version
0.0.0-pr-28552-sha-be84deb3
. Try it out in a new sandbox by runningnpx [email protected] sandbox
or in an existing project withnpx [email protected] upgrade
.More information
0.0.0-pr-28552-sha-be84deb3
shilman/optimize-docs-mdx
be84deb3
1720715280
)To request a new release of this pull request, mention the
@storybookjs/core
team.core team members can create a new canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=28552