Skip to content

perf: replace debug with obug#13

Merged
sxzz merged 2 commits intomainfrom
perf/obug
Nov 17, 2025
Merged

perf: replace debug with obug#13
sxzz merged 2 commits intomainfrom
perf/obug

Conversation

@sxzz
Copy link
Copy Markdown
Member

@sxzz sxzz commented Nov 15, 2025

Description

Vite side: vitejs/vite#21107

https://github.com/sxzz/obug is a newly developed project, forked from debug, the most popular npm library for debugging.

obug addresses several issues:

  • Built-in TypeScript support—no need to install @types/debug (More accurate)
  • Zero dependencies, achieved by dropping support for legacy browsers and older Node.js versions
    • Optimized for modern environments
    • Supports ES2015+ browsers
    • Compatible with Node.js 20.19 and above
  • Pure ESM
  • Extremely small footprint
    • Unpacked size: 21 KB vs 42 KB (including dependencies)
    • Production bundle size for browsers: only 3.22 kB, gzip: 1.5kB.
  • Uses trusted publishing (although some consider this meaningless, this is simply to inform those who care about it; related discussions are outside the scope of this post)

Linked Issues

Additional context

@sxzz sxzz merged commit 0b18c53 into main Nov 17, 2025
4 checks passed
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