-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsup.config.ts
34 lines (33 loc) · 1.01 KB
/
tsup.config.ts
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
34
import { defineConfig, type Options } from 'tsup';
export default defineConfig((options: Options) => ({
dts: true,
target: ['es2020'],
format: ['esm', 'cjs', 'iife'],
platform: 'browser',
entry: {
index: 'src/index.ts',
events: 'src/events.ts',
i18n: 'src/i18n.ts',
styles: 'src/styles.ts',
thumbnail: 'src/thumbnail.ts',
'annotation-targets': 'src/annotation-targets.ts',
'content-state': 'src/content-state.ts',
fetch: 'src/fetch.ts',
'painting-annotations': 'src/painting-annotations.ts',
ranges: 'src/ranges.ts',
sequences: 'src/sequences.ts',
'nav-date': 'src/nav-date.ts',
vault: 'src/vault.ts',
'vault-node': 'src/vault-node.ts',
'vault-store': 'src/vault-store.ts',
'vault-actions': 'src/vault-actions.ts',
'vault-utility': 'src/vault-utility.ts',
transcriptions: 'src/transcriptions.ts',
search1: 'src/search1.ts',
// New helpers can be added here.
},
minify: false,
external: [],
globalName: 'IIIFHelpers',
...options,
}));