mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 13:48:14 +00:00
22 lines
435 B
TypeScript
22 lines
435 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['cjs', 'esm'],
|
|
clean: true,
|
|
sourcemap: true,
|
|
outDir: 'dist',
|
|
external: [
|
|
// Keep all dependencies external for library builds
|
|
/^@vjs-10\//,
|
|
/^[^.]/,
|
|
],
|
|
// Generate TypeScript declarations with custom config
|
|
dts: {
|
|
compilerOptions: {
|
|
composite: false,
|
|
incremental: false,
|
|
},
|
|
},
|
|
});
|