modernweb-dev / web

Guides, tools and libraries for modern web development.
https://modern-web.dev
MIT License
2.21k stars 281 forks source link

fix(storybook-builder): import both globals and globalsNameReferenceM… #2620

Closed jdevega closed 8 months ago

jdevega commented 8 months ago

…ap from @storybook/preview/globals

What I did

  1. Import both globals and globalsNameReferenceMap exports from @storybook/preview/globals.
  2. Instead of using globals, only use it when globalsNameReferenceMap has no value to preserve retrocompatibility.
changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: 010eed699afdced0d46e483361ff79ca07660b90

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

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | @web/storybook-builder | Patch |

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