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

Correct module check to not throw an error #190

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

smmccabe
Copy link
Contributor

@smmccabe smmccabe commented Mar 31, 2023

In esm mode, module does not exist and will throw an error if checked via if(module)

📦 Published PR as canary version: 7.0.8--canary.190.369a889.0

✨ Test out this PR locally via:

npm install @storybook/addon-designs@7.0.8--canary.190.369a889.0
# or 
yarn add @storybook/addon-designs@7.0.8--canary.190.369a889.0

In esm mode, module does not exist and will throw an error if checked via `if(module)`
Copy link
Collaborator

@pocka pocka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to format with Prettier? I believe it uses double-quotes given this project's setting (default one, v2.x).

@yannbf yannbf merged commit 369a889 into storybookjs:master Dec 1, 2023
2 checks passed
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.

None yet

3 participants