Monorepo
The following format is friendly when sharing a webcomponent to NPM using @atomico/exports
From the previous structure we highlight:
src/define
: import the components fromsrc/elements
and declare them as customElementssrc/elements
: groups and export components as CustomElements
Why separate the export of the element from the declaration?
since it improves the customElements definition experience, example:
Thanks to @atomico/exports this is really easy, example:
You can see a use case of this structure in @atomico/components
Last updated