-
+import { shallowRef, onMounted, h, defineComponent } from "vue";
+import { applyDocumentMeta } from "../utils/applyDocumentMeta";
+import { createRemoteAppComponent } from "@module-federation/bridge-vue3";
-
Auth
-
Catalog
+const innerComp = shallowRef
(null);
+onMounted(() => {
+ const remoteModule = createRemoteAppComponent({
+ loader: () => import("player/Player"),
+ asyncComponentOptions: {
+ loadingComponent: defineComponent({
+ name: "LoadingComponent",
+ setup() {
+ return () => h("div", "Loading player...");
+ },
+ }),
+ }
+ });
-
+ innerComp.value = defineComponent({
+ name: "PlayerRemoteWrapper",
+ setup() {
+ applyDocumentMeta({
+ title: "Moduflix - Player",
+ description: "Application with Vue.js",
+ });
-