storybookjs / addon-designs

A Storybook addon that embeds Figma, websites, or images in the addon panel.
https://storybookjs.github.io/addon-designs
MIT License
870 stars 73 forks source link

Correct module check to not throw an error #190

Closed smmccabe closed 9 months ago

smmccabe commented 1 year ago

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
:sparkles: Test out this PR locally via: ```bash 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 ```