20 lines
469 B
TypeScript
20 lines
469 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: './src/index.ts',
|
|
'library/index': './src/library/index.ts'
|
|
},
|
|
platform: 'node',
|
|
format: ['esm'],
|
|
sourcemap: true,
|
|
clean: true,
|
|
outDir: './dist',
|
|
treeshake: false,
|
|
deps: {
|
|
alwaysBundle: ['@open-pencil/mcp', /^@open-pencil\/mcp\//],
|
|
neverBundle: ['@open-pencil/core', /^@open-pencil\/core\//, 'canvaskit-wasm', /^node:/],
|
|
onlyBundle: false
|
|
}
|
|
})
|