mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 17:51:38 +03:00
25 lines
478 B
TypeScript
25 lines
478 B
TypeScript
|
import { resolve } from 'node:path';
|
||
|
|
||
|
import { fileURLToPath } from 'url';
|
||
|
import dts from 'vite-plugin-dts';
|
||
|
import { defineConfig } from 'vitest/config';
|
||
|
|
||
|
const root = fileURLToPath(new URL('.', import.meta.url));
|
||
|
|
||
|
export default defineConfig({
|
||
|
build: {
|
||
|
lib: {
|
||
|
entry: {
|
||
|
index: resolve(root, 'src/index.ts'),
|
||
|
},
|
||
|
formats: ['es', 'cjs'],
|
||
|
name: 'AffineInfra',
|
||
|
},
|
||
|
},
|
||
|
plugins: [
|
||
|
dts({
|
||
|
insertTypesEntry: true,
|
||
|
}),
|
||
|
],
|
||
|
});
|