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

This commit is contained in:
Himself65
2023-05-31 17:08:03 +08:00
committed by GitHub
parent 4e1e4e9435
commit 454f1887cf
15 changed files with 202 additions and 49 deletions

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');
}