Skip to content

Commit c1537e2

Browse files
committed
perf: replace debug with obug
1 parent dd325c4 commit c1537e2

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
}
7373
},
7474
"dependencies": {
75-
"debug": "^4.4.3",
7675
"magic-string": "^0.30.21",
76+
"obug": "^0.1.1",
7777
"oxc-parser": ">=0.96.0",
7878
"oxc-transform": ">=0.96.0",
7979
"unplugin": "^2.3.10",
@@ -87,7 +87,6 @@
8787
"@sxzz/eslint-config": "^7.2.8",
8888
"@sxzz/prettier-config": "^2.2.4",
8989
"@sxzz/test-utils": "^0.5.12",
90-
"@types/debug": "^4.1.12",
9190
"@types/node": "^24.10.0",
9291
"bumpp": "^10.3.1",
9392
"esbuild": "^0.25.12",

pnpm-lock.yaml

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path'
2-
import Debug from 'debug'
2+
import Debug, { type Debugger } from 'obug'
33

4-
export const debug: Debug.Debugger = Debug('unplugin-isolated-decl')
4+
export const debug: Debugger = Debug('unplugin-isolated-decl')
55

66
export function lowestCommonAncestor(...filepaths: string[]): string {
77
if (filepaths.length === 0) return ''

0 commit comments

Comments
 (0)