Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migrate to obug in Babel v8 #17595

@sxzz

Description

@sxzz

💻

  • Would you like to work on this feature?

What problem are you trying to solve?

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 (and 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 18 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)

Some projects have already switched to obug, including Vite, Vite-node, VitePress, and several others related to the Vite ecosystem.

See e18e/ecosystem-issues#217 for discussion

Describe the solution you'd like

Replace debug with obug

Describe alternatives you've considered

N/A

Documentation, Adoption, Migration Strategy

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions