-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mjs
More file actions
32 lines (29 loc) · 752 Bytes
/
config.mjs
File metadata and controls
32 lines (29 loc) · 752 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
// noinspection SpellCheckingInspection - Specifically for `outbase` and `outdir`...
import {context} from "esbuild";
import {BitburnerPlugin} from "esbuild-bitburner-plugin";
const createContext = async () => await context({
entryPoints: [
"servers/**/*.js",
"servers/**/*.jsx",
"servers/**/*.ts",
"servers/**/*.tsx",
],
outbase: "./servers",
outdir: "./build",
plugins: [
BitburnerPlugin({
port: 12525,
types: "NetscriptDefinitions.d.ts",
remoteDebugging: false,
mirror: {},
distribute: {},
}),
],
bundle: true,
format: "esm",
platform: "browser",
logLevel: "debug",
});
const ctx = await createContext();
// noinspection JSIgnoredPromiseFromCall
void ctx.watch();