mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-01 13:02:01 +03:00
24 lines
512 B
TypeScript
24 lines
512 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: {
|
|
entry: resolve(root, 'src/entry.ts'),
|
|
server: resolve(root, 'src/server.ts'),
|
|
},
|
|
},
|
|
rollupOptions: {
|
|
external: [/^jotai/, /^@blocksuite/, 'zod'],
|
|
},
|
|
},
|
|
plugins: [dts()],
|
|
});
|