Files
rudder-js-sdk/tsup.config.ts
T

15 lines
330 B
TypeScript
Raw Permalink Normal View History

2026-08-12 14:02:25 +03:00
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
target: 'es2022',
dts: true,
clean: true,
// Code-split the lazily-imported scenario client out of the initial chunk.
2026-08-12 14:02:25 +03:00
splitting: true,
treeshake: true,
platform: 'browser',
outDir: 'dist',
});