diff --git a/index.ts b/index.ts index fef12bf9..2544e9ea 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,8 @@ -import { setApp } from 'alemon' -import { apps } from './apps/index.js' - -setApp('miao-plugin', apps) \ No newline at end of file +import { createApp, getAppName } from 'alemonjs' +const AppName = getAppName(import.meta.url) +const { apps } = await import('./apps/index.js').finally(() => { + console.log('[APP] 喵喵插件 启动') +}) +const app = createApp(AppName) +app.component(apps) +app.mount() \ No newline at end of file