feat: support sse

This commit is contained in:
lin onetwo 2023-06-18 18:24:11 +08:00
parent e88a225f3b
commit b5534a0bb8
9 changed files with 111 additions and 11 deletions

View file

@ -12,7 +12,7 @@ const tsconfigPath = path.join(__dirname, '../tsconfig.json');
const sourceFolder = '../src/services/wiki/plugin/ipcSyncAdaptor';
await esbuild.build({
logLevel: 'info',
entryPoints: [path.join(__dirname, sourceFolder, 'index.ts')],
entryPoints: [path.join(__dirname, sourceFolder, 'ipc-syncadaptor.ts')],
bundle: true,
// use node so we have `exports`, otherwise `module.adaptorClass` in $:/core/modules/startup.js will be undefined
platform: 'node',