🐛 disable strictGlobal if sandbox was false (#1492)
This commit is contained in:
parent
c2a7590666
commit
7ae60e3f7f
|
|
@ -330,7 +330,7 @@ export async function loadApp<T extends ObjectType>(
|
||||||
await execHooksChain(toArray(beforeLoad), app, global);
|
await execHooksChain(toArray(beforeLoad), app, global);
|
||||||
|
|
||||||
// get the lifecycle hooks from module exports
|
// get the lifecycle hooks from module exports
|
||||||
const scriptExports: any = await execScripts(global, !useLooseSandbox);
|
const scriptExports: any = await execScripts(global, sandbox && !useLooseSandbox);
|
||||||
const { bootstrap, mount, unmount, update } = getLifecyclesFromExports(
|
const { bootstrap, mount, unmount, update } = getLifecyclesFromExports(
|
||||||
scriptExports,
|
scriptExports,
|
||||||
appName,
|
appName,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user