feat: plugin system with isolated bundles (#2660)

This commit is contained in:
Himself65
2023-06-02 16:28:47 +08:00
committed by GitHub
parent f9079bb681
commit 94d20f1bdc
19 changed files with 147 additions and 28 deletions

View 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);
});