Skip to content

Runtime: Phase 1.5 color subpath + bundle budget#90

Merged
dbanksdesign merged 3 commits into
mainfrom
fix/runtime-p1-5
Jun 12, 2026
Merged

Runtime: Phase 1.5 color subpath + bundle budget#90
dbanksdesign merged 3 commits into
mainfrom
fix/runtime-p1-5

Conversation

@dbanksdesign

Copy link
Copy Markdown
Collaborator

Summary

  • Move color helpers to a new typestyles/color subpath entry (~612 B gzip) so they are not eagerly bundled with the main runtime
  • Main entry (dist/index.js) drops from ~15.4 KB → ~14.9 KB gzip
  • Add scripts/check-bundle-size.mjs (15.5 KB gzip budget) — runs after pnpm build and in CI
  • Document measured main-entry size in the README comparison table

Breaking: import { color } from 'typestyles'import { color } from 'typestyles/color'

Test plan

  • pnpm --filter typestyles test
  • pnpm --filter typestyles build (bundle size check passes)
  • Full monorepo pnpm test
  • Confirm design-system themes still build with typestyles/color imports

Made with Cursor

dbanksdesign and others added 3 commits June 11, 2026 21:49
Split color helpers into a separate bundle entry, add a gzip budget check in CI, and document the measured ~14.9 KB main entry in the README comparison table.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Fixes no-undef on Node globals in check-bundle-size.mjs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dbanksdesign dbanksdesign merged commit f979149 into main Jun 12, 2026
6 checks passed
@dbanksdesign dbanksdesign deleted the fix/runtime-p1-5 branch June 12, 2026 05:00
@github-actions github-actions Bot mentioned this pull request Jun 12, 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