Skip to content

Commit

Permalink
fix: missing code when script as remoteType
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Feb 28, 2022
1 parent 3bc9a71 commit d2c02f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RemoteModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const getExternalSourceForScriptExternal = (variableName, externalRequest, keepA
'reject(__webpack_error__);',
])}, ${JSON.stringify(globalName)});`,
])})`,
`.then(${returningFunction(getLazyOnceValueSource(`${globalName}.get(${objectLookup})`, keepAsync))});`,
`.then(${returningFunction(getLazyOnceValueSource(`${globalName}.get(${objectLookup}).then(${returningFunction('factory()', 'factory')})`, keepAsync))});`,
`${RuntimeGlobals.makeNamespaceObject}(module.exports);`,
'}());',
])
Expand Down

0 comments on commit d2c02f0

Please sign in to comment.