feat: add @affine/sdk (#3536)
This commit is contained in:
1 parent
d3c719d89a
commit
ea34d66e14
39 files changed
+256
-93
No files matched your search
@@ -0,0 +1,23 @@
|
||||
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()],
|
||||
});
|
||||
Reference in new issue
Block a user