Skip to content

fix(github-callouts): bundle only the theme from comark-zoom, so callouts don't install zoom or ship its styles - #29

Merged
vitehub-bot[bot] merged 1 commit into
mainfrom
fix/github-callouts-zoom-dep
Oct 20, 2026
Merged

vitehub-bot[bot] merged 1 commit into
mainfrom
fix/github-callouts-zoom-dep

Conversation

@onmax

@onmax onmax commented Oct 20, 2026

Copy link
Copy Markdown
Owner

comark-github-callouts listed comark-zoom as a runtime dependency only to call theme(), which resolves the shared --comark-* tokens. That had two costs:

  • Every callouts user installed zoom.
  • theme came from comark-zoom/client, whose chunk also holds zoom's whole stylesheet. That string is built at module load, so bundlers can't drop it. A page with callouts and no zoom still shipped about 4 kB of .cz-* CSS.

Changes:

  • comark-zoom gets a comark-zoom/theme entry that exports only theme(). comark-zoom/client still re-exports it, so carousel and annotate don't change.
  • comark-github-callouts imports theme from comark-zoom/theme and moves comark-zoom to devDependencies. tsdown inlines the 1.2 kB helper into dist, and the published package has no zoom import left.
  • An AGENTS.md line explains why callouts uses the dev dependency.

Verified:

  • dist/style.css for callouts is byte-identical to the one built on main.
  • grep cz-dialog packages/github-callouts/dist finds nothing; before this change it was in the styles chunk.
  • pnpm ready passes: build with publint, lint, typecheck, 83/83 tests, and Vite Doctor with 0 warnings for all four packages.

Callouts hasn't been published yet, so this lands before its first release in v0.3.0 (#22).

🤖 Generated with Claude Code

@vitehub-bot

vitehub-bot Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for GitHub merge request 78d8ae60-ec7f-42c1-999d-85c7918e5123.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

@pkg-pr-new

pkg-pr-new Bot commented Oct 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-annotate@29
pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-carousel@29
pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-github-callouts@29
pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-zoom@29

commit: 6bebf0f

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ 6bebf0f 2026-10-20T14:06:47.214Z Visit the dashboard ↗

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Standalone theme entry — reviewed the new comark-zoom/theme export and tsdown entry, including preservation of the existing zoom entrypoints.
  • Callouts dependency boundary — reviewed the import and dependency move so comark-github-callouts can inline the shared theme without retaining a runtime comark-zoom dependency.
  • Package metadata — reviewed the lockfile, package exports, and repository guidance updates.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@vitehub-bot
vitehub-bot Bot merged commit 1567a65 into main Oct 20, 2026
9 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 20, 2026
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.

1 participant