@module-federation/bridge-vue3
Advanced tools
Comparing version 0.0.0-next-20240620060503 to 0.2.0
# @module-federation/bridge-vue3 | ||
## 0.0.0-next-20240620060503 | ||
## 0.2.0 | ||
### Minor Changes | ||
- d2ab821: feat(bridge): Supports exporting and loading of application-level modules (with routing), currently supports react and vue3 | ||
### Patch Changes | ||
- @module-federation/bridge-shared@0.0.0-next-20240620060503 | ||
- Updated dependencies [d2ab821] | ||
- @module-federation/bridge-shared@0.2.0 |
{ | ||
"name": "@module-federation/bridge-vue3", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
"version": "0.0.0-next-20240620060503", | ||
"version": "0.2.0", | ||
"publishConfig": { | ||
@@ -17,3 +17,3 @@ "access": "public" | ||
"dependencies": { | ||
"@module-federation/bridge-shared": "0.0.0-next-20240620060503" | ||
"@module-federation/bridge-shared": "0.2.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
@@ -12,8 +12,2 @@ { | ||
} | ||
}, | ||
"test": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"commands": ["npm run test --prefix packages/bridge/vue3-bridge"] | ||
} | ||
} | ||
@@ -20,0 +14,0 @@ }, |
@@ -8,6 +8,6 @@ import { defineAsyncComponent, h } from 'vue'; | ||
export function createRemoteComponent( | ||
lazyComponent: () => Promise<any>, | ||
info?: { export: string }, | ||
) { | ||
export function createRemoteComponent(info: { | ||
loader: () => Promise<any>; | ||
export?: string; | ||
}) { | ||
return defineAsyncComponent({ | ||
@@ -32,7 +32,6 @@ __APP_VERSION__, | ||
basename, | ||
lazyComponent, | ||
exportName, | ||
info, | ||
}); | ||
const module: any = await lazyComponent(); | ||
const module: any = await info.loader(); | ||
const moduleName = module && module[Symbol.for('mf_module_id')]; | ||
@@ -39,0 +38,0 @@ const exportFn = module[exportName]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14814
18
340
+ Added@module-federation/bridge-shared@0.2.0(transitive)
- Removed@module-federation/bridge-shared@0.0.0-next-20240620060503(transitive)