Skip to content

perf: stop shipping the source map in published dist/#192

Merged
maximn merged 3 commits into
mainfrom
maximn/review-changes-v1
Jul 5, 2026
Merged

perf: stop shipping the source map in published dist/#192
maximn merged 3 commits into
mainfrom
maximn/review-changes-v1

Conversation

@maximn

@maximn maximn commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Stops shipping the ~7.5MB source map (and its sourcemap-register.js shim) in the published dist/, which every consumer of testglance/action@v1 downloads on each run. Closes #161.

Changes

  • package.json: build drops --source-map; new build:debug keeps it for local bundle debugging only.
  • .github/workflows/ci.yml (release-v1): rm -rf dist before build + git add -A -f dist/, so the stale map/shim already committed on main are removed on the next release.
  • Docs: updated .agents/build-and-release.md, .agents/security.md, and marked known-issue D as Fixed.

Impact

Committed/checked-out dist/ drops from ~14.2MB to ~6.6MB (~7.2MB, ~53%, removed per consumer checkout). No src/ or test changes.

Test plan

  • pnpm builddist/ contains only index.js + licenses.txt (no map/shim); sourcemap-register require gone from index.js
  • pnpm build:debug → map + shim reappear
  • pnpm test (737 passed), pnpm typecheck, pnpm lint, pnpm format:check all pass

maximn added 3 commits July 5, 2026 20:56
Drop --source-map from the `build` script so the released bundle no longer
ships dist/index.js.map (~7.5MB) or the sourcemap-register.js shim. Add a
`build:debug` script that keeps the map for local bundle debugging only.

The release-v1 job now runs `rm -rf dist` before building and stages with
`git add -A -f dist/`, so the stale map/shim already committed on main are
removed on the next release. Closes #161.
# Conflicts:
#	.agents/known-issues.md
#	.agents/security.md
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

@maximn maximn enabled auto-merge (squash) July 5, 2026 20:12
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

🔬 TestGlance

✅ 740 passed across 1 job — 100.0% · ⏱️ 3.3s

Job Result Pass rate Duration Health
test 740/740 · 100.0% 3.3s 95 Run · Report
🟡 test — details

✅ 740 passed
████████████████ 100.0%
⏱️ 3.3s · 🏥 95/100

Signal Details
🔵 Health Score: 95 → 95

vs main

Metric main PR Delta
Pass rate 100.0% 100.0% +0.0%
Duration 3.0s 3.3s +10.9%

View Run → · 📄 HTML Report


Updated 2026-07-05T20:13:02.558Z

@maximn maximn merged commit 415e9ad into main Jul 5, 2026
7 checks passed
@maximn maximn deleted the maximn/review-changes-v1 branch July 5, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop shipping the ~6.5MB source map in the published dist/

1 participant