🐛 disable strictGlobal if sandbox was false (#1492)

This commit is contained in:
lsdsjy 2021-06-08 15:39:27 +08:00 committed by GitHub
parent c2a7590666
commit 7ae60e3f7f

View File

@ -330,7 +330,7 @@ export async function loadApp<T extends ObjectType>(
await execHooksChain(toArray(beforeLoad), app, global);
// 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(
scriptExports,
appName,