From 36978dbed616bac432f0c246a025d156927ac6b1 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Thu, 1 Jun 2023 01:14:37 +0800 Subject: [PATCH] fix: plugin bootstrap (#2631) Co-authored-by: himself65 --- apps/web/src/bootstrap/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/web/src/bootstrap/index.ts b/apps/web/src/bootstrap/index.ts index e69de29bb2..ee69e28aee 100644 --- a/apps/web/src/bootstrap/index.ts +++ b/apps/web/src/bootstrap/index.ts @@ -0,0 +1,11 @@ +import { config, setupGlobal } from '@affine/env/config'; + +setupGlobal(); + +if (config.enablePlugin && !environment.isServer) { + import('@affine/copilot'); +} + +if (!environment.isServer) { + import('@affine/bookmark-block'); +}