atropos v1
This commit is contained in:
		
							
								
								
									
										9
									
								
								plugins/atropos.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								plugins/atropos.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| import { defineNuxtPlugin } from '#app'; | ||||
|  | ||||
| export default defineNuxtPlugin(() => { | ||||
|   if (process.client) { | ||||
|     import('atropos/element').then(({ default: AtroposComponent }) => { | ||||
|       customElements.define('atropos-component', AtroposComponent); | ||||
|     }); | ||||
|   } | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user