fix(core): lockdown twice

This commit is contained in:
Alex Yang 2023-07-30 08:09:05 -07:00
parent 99c24b5cd8
commit 568d5e4cdf

View File

@ -1,6 +1,3 @@
/// <reference types="@types/webpack-env" />
import 'ses';
import { DebugLogger } from '@affine/debug';
import {
registeredPluginAtom,
@ -9,17 +6,6 @@ import {
import { evaluatePluginEntry, setupPluginCode } from './plugins/setup';
if (!process.env.COVERAGE) {
lockdown({
evalTaming: 'unsafeEval',
overrideTaming: 'severe',
consoleTaming: 'unsafe',
errorTaming: 'unsafe',
errorTrapping: 'platform',
unhandledRejectionTrapping: 'report',
});
}
const builtinPluginUrl = new Set([
'/plugins/bookmark',
'/plugins/copilot',