-
-
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
Addon-docs: Fix doc blocks imports to import from ESM/CJS #14841
Conversation
Nx Cloud ReportCI ran the following commands for commit 412eb52. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
MIGRATION.md
Outdated
@@ -209,7 +230,7 @@ Many Storybook packages are now available as ESModules in addition to CommonJS. | |||
|
|||
```js | |||
// In your jest config | |||
transformIgnorePatterns: ['/node_modules/(?!@storybook)'] | |||
transformIgnorePatterns: ['/node_modules/(?!@storybook)']; |
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.
Tiny nit, but this line of config is likely either in an object or JSON, so the semi-colon is a syntax error.
More importantly, should we update the text above this to inform people that this isn't necessary in 6.3?
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.
Good catch, updated!
Issue: #13478
What I did
Move to importing from
@storybook/addon-docs
instead of@storybook/addon-docs/blocks
so that we can import from either CJS or ESM automaticallyself-merging @ndelangen @kylegach
How to test
Does CI pass?