blob: bf4c259f6eaf6b1951f9c905bc1722407847fde7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { defineConfig } from 'tsup';
import { allLocales } from './src';
export default defineConfig({
entry: [
'src/index.ts',
...Object.keys(allLocales).map((locale) => `src/locale/${locale}.ts`),
],
outDir: 'dist',
clean: true,
format: 'esm',
target: ['es2023', 'node20.11'],
dts: true,
minify: true,
sourcemap: false,
splitting: true,
});
|