Skip to content

Commit 8e9da6c

Browse files
committed
Clarify build:worker script to use bundle analyzer
- build:worker now uses worker.compile.ts (shows real size with WASM) - build:worker:bun added for raw Bun build (JS only, faster) This avoids confusion: Bun's 435KB excludes WASM, real bundle is 585KB
1 parent c1e659a commit 8e9da6c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"dev": "bun --hot src/index.ts",
1414
"start": "bun src/index.ts",
1515
"compile": "bun build --compile --minify --sourcemap server.ts --outfile dist/openworkers-api",
16-
"build:worker": "bun build --minify --sourcemap --target=browser worker.ts --outdir dist",
16+
"build:worker": "bun worker.compile.ts",
17+
"build:worker:bun": "bun build --minify --sourcemap --target=browser worker.ts --outdir dist",
1718
"test": "bun test",
1819
"check": "tsc --noEmit",
1920
"lint": "prettier --write .",

0 commit comments

Comments
 (0)