feat: add @affine/bookmark-block plugin (#2618)

This commit is contained in:
Himself65
2023-05-31 17:08:03 +08:00
committed by himself65
parent 341731bbfc
commit bd3ea956e2
15 changed files with 202 additions and 49 deletions
+7 -3
View File
@@ -1,7 +1,11 @@
import { config, getEnvironment, setupGlobal } from './config';
import { config, setupGlobal } from './config';
if (config.enablePlugin && !getEnvironment().isServer) {
setupGlobal();
if (config.enablePlugin && !environment.isServer) {
import('@affine/copilot');
}
setupGlobal();
if (!environment.isServer) {
import('@affine/bookmark-block');
}