@phoria/phoria-vue
Version:
Use Vue with Phoria Islands for dotnet.
13 lines (12 loc) • 427 B
JavaScript
import { importComponent as t, registerCsrService as p } from "@phoria/phoria";
import { framework as e } from "./main.js";
const i = {
mount: async (m, r, o) => {
if (r.framework !== e.name)
throw new Error(`${e.name} cannot render the ${r.framework} component named "${r.name}".`);
Promise.all([import("vue"), t(r)]).then(([n, a]) => {
n.createApp(a.component, o).mount(m);
});
}
};
p(e.name, i);