revert default enabled speedy mode (#2321)

This commit is contained in:
Kuitos 2022-10-30 19:44:00 +08:00 committed by GitHub
parent 743473ae51
commit 4baec4502b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,8 +311,7 @@ export async function loadApp<T extends ObjectType>(
let mountSandbox = () => Promise.resolve();
let unmountSandbox = () => Promise.resolve();
const useLooseSandbox = typeof sandbox === 'object' && !!sandbox.loose;
// enable speedy mode by default
const speedySandbox = typeof sandbox === 'object' ? sandbox.speedy !== false : true;
const speedySandbox = typeof sandbox === 'object' && !!sandbox.speedy;
let sandboxContainer;
if (sandbox) {
sandboxContainer = createSandboxContainer(