import { createApp, type App as VueApp } from 'vue'; import { waitForWu } from 'wu-framework/adapters/shared'; import App from './App.vue'; const wu = await waitForWu(); let app: VueApp | undefined; wu.define('inspector', { mount(container, context) { if (!context?.wu) throw new Error('Esta app necesita el contexto de WU.'); app = createApp(App, { appWu: context.wu }); app.mount(container); }, unmount() { app?.unmount(); app = undefined; }, });