Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@module-federation/bridge-vue3

Package Overview
Dependencies
Maintainers
0
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/bridge-vue3 - npm Package Compare versions

Comparing version 0.0.0-next-20240620060503 to 0.2.0

9

CHANGELOG.md
# @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];

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc