Skip to content

Commit

Permalink
🐛 dynamic import with custom fetch (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
eynol authored and kuitos committed Mar 29, 2020
1 parent dc9e5ec commit 8ac727f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export function registerMicroApps<T extends object = {}>(
let mountSandbox = () => Promise.resolve();
let unmountSandbox = () => Promise.resolve();
if (useJsSandbox) {
const sandbox = genSandbox(appName);
const { fetch } = settings || {};
const sandbox = genSandbox(appName, { fetch });
jsSandbox = sandbox.sandbox;
mountSandbox = sandbox.mount;
unmountSandbox = sandbox.unmount;
Expand Down

0 comments on commit 8ac727f

Please sign in to comment.