forked from cwtools/cwtools-vscode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrollup.config.mjs
More file actions
44 lines (41 loc) · 1.17 KB
/
rollup.config.mjs
File metadata and controls
44 lines (41 loc) · 1.17 KB
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
// rollup.config.js
import typescript from 'rollup-plugin-typescript';
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",
sourceMap: false,
indent: false
},
plugins: [
typescript({
"noUnusedLocals": false,
"noUnusedParameters": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"target": "es6",
"moduleResolution": "node",
"rootDir": "client",
"outDir": "out/client",
"lib": ["es2016", "dom"],
"sourceMap": true,
"esModuleInterop": true,
"outFile": "out/client/webview/graph.js",
"lib": ["dom"],
}),
resolve(),
commonjs({ sourceMap: false }),
hypothetical({
allowFallthrough: true,
files: {
'webworker-threads': `
export default {};
`
}
}),
]
}