mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat: plugin system with isolated bundles (#2660)
This commit is contained in:
14
scripts/setup/build-plugins.ts
Normal file
14
scripts/setup/build-plugins.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
import { fileURLToPath } from 'url';
|
||||
import { build } from 'vite';
|
||||
import { beforeAll } from 'vitest';
|
||||
|
||||
export const rootDir = fileURLToPath(new URL('../..', import.meta.url));
|
||||
|
||||
beforeAll(async () => {
|
||||
const { default: config } = await import(
|
||||
resolve(rootDir, './plugins/bookmark-block/vite.config.ts')
|
||||
);
|
||||
await build(config);
|
||||
});
|
||||
Reference in New Issue
Block a user