-
Notifications
You must be signed in to change notification settings - Fork 12
/
rollup.config.mjs
50 lines (46 loc) · 1.41 KB
/
rollup.config.mjs
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
// rollup.config.js
import typescript from 'rollup-plugin-typescript2';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import hypothetical from 'rollup-plugin-hypothetical';
export default {
input: './client/webview/graph.ts',
output: {
format: "iife",
name: "cwtoolsgraph",
indent: false,
globals: {
"web-worker": "Worker"
}
},
plugins: [
typescript({
// "noUnusedLocals": false,
// "noUnusedParameters": true,
// "noImplicitAny": true,
// "noImplicitReturns": true,
// "target": "es2020",
// "moduleResolution": "node",
// "rootDir": "client",
// "outDir": "out/client",
// "lib": ["es2020", "dom"],
// "sourceMap": true,
// "esModuleInterop": true,
// // "outFile": "out/client/webview/graph.js",
// "lib": ["dom"],
// "module": "ESNext",
"tsconfig": "tsconfig.webview.json"
}),
resolve(),
commonjs({ sourceMap: false }),
// hypothetical({
// allowFallthrough: false,
// files: {
// 'webworker-threads': `
// export default {};
// `,
// 'web-worker': 'export default {};'
// }
// }),
]
}