mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-28 11:53:24 +03:00
36 lines
722 B
TypeScript
36 lines
722 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'),
|
|
},
|
|
},
|
|
rollupOptions: {
|
|
external: [
|
|
'jotai',
|
|
'jotai/vanilla',
|
|
'@blocksuite/blocks',
|
|
'@blocksuite/store',
|
|
'@blocksuite/global',
|
|
'@blocksuite/editor',
|
|
'@blocksuite/lit',
|
|
],
|
|
},
|
|
},
|
|
plugins: [
|
|
dts({
|
|
insertTypesEntry: true,
|
|
}),
|
|
],
|
|
});
|