-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
29 lines (28 loc) · 889 Bytes
/
tsdown.config.ts
File metadata and controls
29 lines (28 loc) · 889 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
import { defineConfig } from 'tsdown';
export default defineConfig({
entry: {
index: 'src/index.ts',
'asymmetric-crypto': 'src/asymmetric-crypto/index.ts',
'symmetric-crypto': 'src/symmetric-crypto/index.ts',
'post-quantum-crypto': 'src/post-quantum-crypto/index.ts',
hash: 'src/hash/index.ts',
'derive-key': 'src/derive-key/index.ts',
'derive-password': 'src/derive-password/index.ts',
'email-crypto': 'src/email-crypto/index.ts',
'keystore-crypto': 'src/keystore-crypto/index.ts',
'storage-service': 'src/storage-service/index.ts',
utils: 'src/utils/index.ts',
types: 'src/types.ts',
constants: 'src/constants.ts',
},
platform: 'browser',
format: ['esm', 'cjs'],
sourcemap: true,
clean: true,
treeshake: true,
outDir: 'dist',
dts: true,
inlineOnly: ['hash-wasm'],
noExternal: ['hash-wasm'],
target: false,
});