forked from coolpace/V2EX_Polish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsup.config.ts
30 lines (23 loc) · 893 Bytes
/
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
import { defineConfig } from 'tsup'
export default defineConfig({
entry: {
'common.min': 'src/contents/common.ts',
'v2ex-home.min': 'src/contents/home/index.ts',
'v2ex-topic.min': 'src/contents/topic/index.ts',
'v2ex-write.min': 'src/contents/write/index.ts',
'v2ex-member.min': 'src/contents/member/index.ts',
'decode-base64.min': 'src/contents/decode-base64.ts',
'reading-list.min': 'src/contents/reading-list.ts',
'popup.min': 'src/pages/popup.ts',
'options.min': 'src/pages/options.ts',
'toggle-icon.min': 'src/background/toggle-icon.ts',
'background.min': 'src/background/main.ts',
'web_accessible_resources.min': 'src/web_accessible_resources.ts',
},
outDir: './extension/scripts',
minify: false,
noExternal: ['@floating-ui/dom', 'webext-patterns', 'lucide'],
esbuildOptions(options) {
options.write = false
},
})