-
Notifications
You must be signed in to change notification settings - Fork 1
/
esbuild.js
38 lines (37 loc) · 945 Bytes
/
esbuild.js
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
const esbuild = require("esbuild");
const path = require("path");
// esbuild.build({
// entryPoints: ["./src/node/cli.ts"],
// outdir: path.resolve(__dirname, "./node"),
// bundle: true,
// sourcemap: false,
// minify: false,
// splitting: false,
// format: "cjs",
// platform: "node",
// target: ["es2015"],
// external: ["esbuild", "rollup"],
// });
esbuild.build({
entryPoints: ["./src/node/index.ts"],
outdir: path.resolve(__dirname, "./node"),
bundle: true,
sourcemap: false,
minify: false,
splitting: false,
format: "cjs",
platform: "node",
target: ["esnext"],
external: ["esbuild", "rollup", "commander"],
});
esbuild.build({
entryPoints: ["./src/client/index.ts"],
outdir: path.resolve(__dirname, "./client"),
bundle: true,
sourcemap: false,
minify: false,
splitting: false,
format: "esm",
target: ["esnext"],
external: ["esbuild", "rollup", "commander"],
});