UNPKG

mergekit

Version:

Uniquely flexible and light-weight utility for cloning and deep (recursive) merging of JavaScript objects. Supports descriptor values, accessor functions, and custom prototypes. Provides advanced options for customizing the clone/merge process.

23 lines (20 loc) 330 B
import { defineConfig } from 'tsup'; const baseConfig = { entry: ['src/index.ts'], sourcemap: true, clean: true }; export default defineConfig([ { ...baseConfig, format: ['esm'], outDir: 'dist/esm', dts: true }, { ...baseConfig, format: ['cjs'], outDir: 'dist/cjs', dts: true } ]);