mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
13 lines
331 B
TypeScript
13 lines
331 B
TypeScript
// 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');
|
|
}
|
|
};
|