-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsup.config.ts
More file actions
33 lines (32 loc) · 726 Bytes
/
tsup.config.ts
File metadata and controls
33 lines (32 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { defineConfig } from 'tsup'
export default defineConfig([
{
entry: [
'src/index.ts',
'src/plugins/dedupe.ts',
'src/plugins/bulkhead.ts',
'src/plugins/circuit.ts',
'src/plugins/hedge.ts',
'src/plugins/response-shortcuts.ts',
'src/plugins/request-shortcuts.ts',
'src/plugins/download-progress.ts',
'src/plugins/context-id.ts',
],
format: ['esm', 'cjs'],
dts: true,
minify: false,
sourcemap: true,
outDir: 'dist',
clean: true,
},
{
entry: ['src/index.ts'],
format: ['esm'],
minify: true,
sourcemap: true,
outDir: 'dist',
dts: false,
clean: false,
outExtension: () => ({ js: '.min.js' }),
},
])