Files
evilspins/app/plugins/01.atropos.ts
valere 7a1cdf2178
All checks were successful
Deploy App / deploy (push) Successful in 1m49s
install atropos (demo on /wait)
2025-08-30 10:26:32 +02:00

10 lines
258 B
TypeScript

import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin(() => {
if (process.client) {
import('atropos/element').then(({ default: AtroposComponent }) => {
customElements.define('atropos-component', AtroposComponent)
})
}
})