mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
32 lines
672 B
TypeScript
32 lines
672 B
TypeScript
import { resolve } from 'node:path';
|
|
|
|
import { fileURLToPath } from 'url';
|
|
import { defineConfig } from 'vite';
|
|
import dts from 'vite-plugin-dts';
|
|
|
|
const root = fileURLToPath(new URL('.', import.meta.url));
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
minify: false,
|
|
lib: {
|
|
entry: {
|
|
type: resolve(root, 'src/type.ts'),
|
|
manager: resolve(root, 'src/manager.ts'),
|
|
'__internal__/workspace': resolve(
|
|
root,
|
|
'src/__internal__/workspace.ts'
|
|
),
|
|
},
|
|
},
|
|
rollupOptions: {
|
|
external: ['react', /^jotai/, /^@blocksuite/],
|
|
},
|
|
},
|
|
plugins: [
|
|
dts({
|
|
insertTypesEntry: true,
|
|
}),
|
|
],
|
|
});
|