-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.mjs
More file actions
57 lines (56 loc) · 1.01 KB
/
Copy pathrollup.config.mjs
File metadata and controls
57 lines (56 loc) · 1.01 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
45
46
47
48
49
50
51
52
53
54
55
56
57
// rollup.config.js
import esbuild from "rollup-plugin-esbuild";
export default [
{
input: "src/main.ts", // main entry
output: {
file: "dist/locobasic.js",
format: "umd",
sourcemap: true,
name: "locobasic",
globals: {
"ohm-js": "ohm"
}
},
external: ["ohm-js"],
plugins: [
esbuild({
include: /src\/.*\.ts$/,
target: "es2020",
tsconfig: "./src/tsconfig.json"
})
]
},
{
input: "./src/UI/UI.ts", // main entry
output: {
file: "dist/locobasicUI.js",
format: "umd",
sourcemap: true,
name: "locobasicUI"
},
plugins: [
esbuild({
include: /src\/.*\.ts$/,
target: "es2020",
tsconfig: "./src/UI/tsconfig.json"
})
]
},
{
input: "./src/vm/VmWorker.ts", // main entry
output: {
file: "dist/locoVmWorker.js",
format: "umd",
sourcemap: true,
name: "locoVmWorker"
},
plugins: [
esbuild({
include: /src\/.*\.ts$/,
target: "es2020",
tsconfig: "./src/vm/tsconfig.json"
})
]
}
];