mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
12
blocksuite/playground/apps/starter/utils/test-worker.ts
Normal file
12
blocksuite/playground/apps/starter/utils/test-worker.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// This file is used to test blocksuite can run in a web worker. SEE: tests/worker.spec.ts
|
||||
|
||||
import '@blocksuite/store';
|
||||
// import '@blocksuite/block-std'; // seems not working
|
||||
import '@blocksuite/blocks/schemas';
|
||||
|
||||
globalThis.onmessage = event => {
|
||||
const { data } = event;
|
||||
if (data === 'ping') {
|
||||
postMessage('pong');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user