refactor(infra): remove old plugin system (#5411)

plugin system need redesign
This commit is contained in:
EYHN
2023-12-27 02:49:59 +00:00
parent 3903a1c1d6
commit 265ee81666
110 changed files with 46 additions and 4426 deletions
-8
View File
@@ -1,14 +1,11 @@
import 'ses';
import './polyfill/intl-segmenter';
import './polyfill/request-idle-callback';
import { assertExists } from '@blocksuite/global/utils';
import { getCurrentStore } from '@toeverything/infra/atom';
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { App } from './app';
import { bootstrapPluginSystem } from './bootstrap/register-plugins';
import { setup } from './bootstrap/setup';
import { performanceLogger } from './shared';
@@ -18,14 +15,9 @@ function main() {
// skip bootstrap setup for desktop onboarding
if (window.appInfo?.windowName !== 'onboarding') {
const rootStore = getCurrentStore();
performanceMainLogger.info('setup start');
setup();
performanceMainLogger.info('setup done');
bootstrapPluginSystem(rootStore).catch(err => {
console.error('Failed to bootstrap plugin system', err);
});
}
mountApp();