fix: plugin bootstrap (#2631)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
Peng Xiao 2023-06-01 01:14:37 +08:00 committed by GitHub
parent 53d1991211
commit 36978dbed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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