-
-
Notifications
You must be signed in to change notification settings - Fork 425
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
42 lines (40 loc) · 966 Bytes
/
tsdown.config.ts
File metadata and controls
42 lines (40 loc) · 966 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
34
35
36
37
38
39
40
41
42
import { defineConfig } from 'tsdown';
const analyzeEnabled = process.env.BUNDLE_ANALYZE === '1';
export default defineConfig(async () => ({
entry: ['src/index.ts', 'src/server/plugin-api.ts'],
format: 'esm',
clean: true,
dts: false,
minify: true,
plugins: analyzeEnabled
? [
(await import('rollup-plugin-visualizer')).visualizer({
filename: './stats.html',
open: false,
gzipSize: true,
brotliSize: true,
}),
]
: [],
deps: {
neverBundle: [
'koffi',
'better-sqlite3',
'quickjs-emscripten',
'@devicefarmer/adbkit',
'camoufox-js',
'playwright-core',
'webcrack',
'rebrowser-puppeteer-core',
'@modelcontextprotocol/sdk',
'jsdom',
'mockttp',
'@babel/generator',
'@babel/parser',
'@babel/traverse',
'@babel/types',
'fingerprint-generator',
'fingerprint-injector',
],
},
}));