@atomico/exports
packaging tool allows automatic export from the recommended structure,@atomico/exports
will generate a modern package.json to current standards, automatically generating all (main, types, exports and more) what is necessary for your package to be distributed correctly.myButton
) to declare your function as webcomponent and the resulting customElements from function c in PascalCase (Button).MyButton
is the only one that can be instantiated as a constructor of the web component, example: