Skip to content

Commit 98a7bb3

Browse files
committed
perf: replace debug with obug
1 parent 892e461 commit 98a7bb3

File tree

11 files changed

+34
-26
lines changed

11 files changed

+34
-26
lines changed

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
"files": [
2727
"dist"
2828
],
29-
"main": "./dist/index.js",
30-
"module": "./dist/index.js",
31-
"types": "./dist/index.d.ts",
29+
"main": "./dist/index.mjs",
30+
"module": "./dist/index.mjs",
31+
"types": "./dist/index.d.mts",
3232
"exports": {
33-
".": "./dist/index.js",
34-
"./filename": "./dist/filename.js",
35-
"./tsc": "./dist/tsc.js",
36-
"./tsc-context": "./dist/tsc-context.js",
37-
"./tsc-worker": "./dist/tsc-worker.js",
33+
".": "./dist/index.mjs",
34+
"./filename": "./dist/filename.mjs",
35+
"./tsc": "./dist/tsc.mjs",
36+
"./tsc-context": "./dist/tsc-context.mjs",
37+
"./tsc-worker": "./dist/tsc-worker.mjs",
3838
"./package.json": "./package.json"
3939
},
4040
"publishConfig": {
@@ -78,17 +78,16 @@
7878
"@babel/types": "^7.28.5",
7979
"ast-kit": "^2.2.0",
8080
"birpc": "^2.8.0",
81-
"debug": "^4.4.3",
8281
"dts-resolver": "^2.1.3",
8382
"get-tsconfig": "^4.13.0",
84-
"magic-string": "^0.30.21"
83+
"magic-string": "^0.30.21",
84+
"obug": "^0.1.1"
8585
},
8686
"devDependencies": {
8787
"@sxzz/eslint-config": "^7.2.8",
8888
"@sxzz/prettier-config": "^2.2.4",
8989
"@sxzz/test-utils": "^0.5.12",
9090
"@types/babel__generator": "^7.27.0",
91-
"@types/debug": "^4.1.12",
9291
"@types/node": "^24.10.0",
9392
"@typescript/native-preview": "7.0.0-dev.20251109.1",
9493
"@volar/typescript": "^2.4.23",

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/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { mkdtemp, readFile, rm } from 'node:fs/promises'
44
import { tmpdir } from 'node:os'
55
import path from 'node:path'
66
import { parse } from '@babel/parser'
7-
import Debug from 'debug'
7+
import Debug from 'obug'
88
import { isolatedDeclaration as oxcIsolatedDeclaration } from 'rolldown/experimental'
99
import {
1010
filename_to_dts,

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Debug from 'debug'
1+
import Debug from 'obug'
22
import { createBannerPlugin } from './banner.ts'
33
import { createDtsInputPlugin } from './dts-input.ts'
44
import { createFakeJsPlugin } from './fake-js.ts'

src/tsc/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'node:path'
2-
import Debug from 'debug'
2+
import Debug from 'obug'
33
import type ts from 'typescript'
44

55
const debug = Debug('rolldown-plugin-dts:tsc-context')

src/tsc/emit-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Debug from 'debug'
1+
import Debug from 'obug'
22
import ts from 'typescript'
33
import {
44
globalContext,

src/tsc/emit-compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'node:path'
2-
import Debug from 'debug'
2+
import Debug from 'obug'
33
import ts from 'typescript'
44
import { globalContext } from './context.ts'
55
import { createFsSystem } from './system.ts'

src/tsc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Debug from 'debug'
1+
import Debug from 'obug'
22
import ts from 'typescript'
33
import { tscEmitBuild } from './emit-build.ts'
44
import { tscEmitCompiler } from './emit-compiler.ts'

src/tsc/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'node:path'
2-
import Debug from 'debug'
2+
import Debug from 'obug'
33
import ts from 'typescript'
44

55
const debug = Debug('rolldown-plugin-dts:tsc-resolver')

src/tsc/system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Debug from 'debug'
1+
import Debug from 'obug'
22
import ts from 'typescript'
33

44
const debug = Debug('rolldown-plugin-dts:tsc-system')

0 commit comments

Comments
 (0)