Skip to content

Commit

Permalink
Fix remoteEntry.js load twice (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: trump.wang <trump.wang@ringcentral.com>
  • Loading branch information
flowforever and WebGSPTrump authored Jul 12, 2022
1 parent e527232 commit ffaef3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/host/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class GlobalApp extends JSApp {
const module = this.options.module || './index';
const exportName = this.options.exportName || 'default';

await super.load();
await this.loadedSource;
// Initializes the share scope. This fills it with known provided modules from this build and all remotes
// @ts-ignore
await __webpack_init_sharing__(defaultScope);
Expand Down

1 comment on commit ffaef3f

@vercel
Copy link

@vercel vercel bot commented on ffaef3f Jul 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.