// This is the standalone host, not the MFE entry. The MFE receives its facade from WU. import { WuCore } from 'wu-framework'; import { register } from './entry.js'; import manifest from '../wu.json'; const runtime=new WuCore(); register(runtime); try { await runtime.init({sandbox:'module',apps:[{name:manifest.name,url:location.origin,framework:'react',grants:manifest.wu.permissions}]}); await runtime.mount(manifest.name,'#app'); }catch(error){document.querySelector('#app').textContent=`No se pudo iniciar Command Lab: ${error.message}`;} if(import.meta.hot)import.meta.hot.dispose(()=>runtime.destroy());