-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtsdown.base.ts
More file actions
52 lines (47 loc) · 954 Bytes
/
Copy pathtsdown.base.ts
File metadata and controls
52 lines (47 loc) · 954 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
43
44
45
46
47
48
49
50
51
52
import { defineConfig } from 'tsdown';
import packageJson from './package.json' with { type: 'json' };
export default defineConfig({
clean: true,
failOnWarn: true,
logLevel: 'warn',
dts: true,
entry: ['./src/index.ts'],
format: {
esm: {
outputOptions: {
dir: './dist/esm',
},
},
cjs: {
outputOptions: {
dir: './dist/cjs',
},
},
umd: {
outputOptions: {
dir: './dist/umd',
entryFileNames: 'sigmacomputing-plugin.umd.js',
globals: {
react: 'React',
},
minify: true,
name: 'SigmaPlugin',
},
},
},
inputOptions: {
transform: {
jsx: 'react',
},
},
platform: 'browser',
sourcemap: true,
tsconfig: './tsconfig.app.json',
define: {
__VERSION__: JSON.stringify(packageJson.version),
__VITEST_BROWSER__: false.toString(),
},
publint: true,
attw: true,
unused: true,
});