Skip to content

Commit dc8cbdd

Browse files
committed
Minify JS bundles
1 parent 191d7c6 commit dc8cbdd

13 files changed

+2681
-1548882
lines changed

build.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ const context = await esbuild.context({
6666
// Include upload-lib.ts as an entry point for use in testing environments.
6767
entryPoints: globSync([`${SRC_DIR}/*-action.ts`, `${SRC_DIR}/*-action-post.ts`, "src/upload-lib.ts"]),
6868
bundle: true,
69+
minifySyntax: true,
70+
minifyWhitespace: true,
71+
// For better stack traces.
72+
minifyIdentifiers: false,
6973
format: "cjs",
7074
outdir: OUT_DIR,
7175
platform: "node",

0 commit comments

Comments
 (0)