🤖Automatically create customElements.define
With @atomico/vite you can automate the declaration of customElements.define, @atomico/vite will transform the export of your customElement into a record for customElements.define.

Config
import atomico from "@atomico/vite";
export default {
plugins: atomico({
customElements: {
// Optional, prefix for your customElements
prefix: "a",
// component folders to associate the customElement
define: ["components/src/**/*"],
},
}),
};
Last updated
Was this helpful?