mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 03:34:26 +03:00
21 lines
398 B
TypeScript
21 lines
398 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default [
|
|
defineConfig({
|
|
format: ['cjs', 'esm'],
|
|
entry: ['src/*.ts', 'src/*/*.ts', '!**/*.{spec,test,test-d}.*'],
|
|
sourcemap: true,
|
|
dts: true,
|
|
clean: true,
|
|
}),
|
|
defineConfig({
|
|
format: ['iife'],
|
|
outDir: 'umd',
|
|
entry: ['src/browser.ts'],
|
|
sourcemap: true,
|
|
dts: false,
|
|
clean: true,
|
|
minify: true,
|
|
}),
|
|
];
|