seb-oss / green

Green is an open-source design system built by SEB.
https://storybook.seb.io/
Apache License 2.0
37 stars 55 forks source link

Refactor the element lookup table to a global singleton #1649

Closed splashdust closed 1 month ago

splashdust commented 1 month ago

This PR refactors the element lookup table as a global singleton rather than a module-scoped object. This should help in module federated scenarios where code has been split up into multiple dynamically loaded modules.

An added benefint is that it now becomes easier to troubleshoot scoping related issues, since you can simply inspect the singleton: image

green-design-system-bot[bot] commented 1 month ago

🦋 Changeset status

Based on the included changeset, the following releases will be published as a result of this PR:

Note: If unpublished changesets where merged to main after the first commit of this PR, this list will include those changes in addition to the ones specific to this PR.

green-design-system-bot[bot] commented 1 month ago

👋 Thanks for creating a pull request!

🚀 Checkout the storybooks we've created for it: