Skip to content

Conversation

@sxzz
Copy link
Contributor

@sxzz sxzz commented Nov 19, 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)

See e18e/ecosystem-issues#217 for discussion

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@netlify
Copy link

netlify bot commented Nov 19, 2025

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e77d672
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69240a5a89361600083597c1
😎 Deploy Preview https://deploy-preview-9057--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

AriPerkkio
AriPerkkio previously approved these changes Nov 19, 2025
@AriPerkkio AriPerkkio merged commit acc5152 into vitest-dev:main Nov 24, 2025
14 of 16 checks passed
@sxzz sxzz deleted the perf/obug branch November 24, 2025 08:17
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.

3 participants