Skip to content

Commit 6cf75dc

Browse files
committed
chore(deps): replace chalk with picocolors
1 parent a86c54c commit 6cf75dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
"@babel/runtime": "^7.12.5",
6464
"@types/aria-query": "^5.0.1",
6565
"aria-query": "5.3.0",
66-
"chalk": "^4.1.0",
6766
"dom-accessibility-api": "^0.5.9",
6867
"lz-string": "^1.5.0",
68+
"picocolors": "^1.1.1",
6969
"pretty-format": "^27.0.2"
7070
},
7171
"devDependencies": {

src/get-user-code-frame.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// We try to load node dependencies
2-
let chalk = null
2+
let picocolors = null
33
let readFileSync = null
44
let codeFrameColumns = null
55

@@ -11,7 +11,7 @@ try {
1111
module,
1212
'@babel/code-frame',
1313
).codeFrameColumns
14-
chalk = nodeRequire.call(module, 'chalk')
14+
picocolors = nodeRequire.call(module, 'picocolors')
1515
} catch {
1616
// We're in a browser environment
1717
}
@@ -46,7 +46,7 @@ function getCodeFrame(frame) {
4646
linesBelow: 0,
4747
},
4848
)
49-
return `${chalk.dim(frameLocation)}\n${codeFrame}\n`
49+
return `${picocolors.dim(frameLocation)}\n${codeFrame}\n`
5050
}
5151

5252
function getUserCodeFrame() {

0 commit comments

Comments
 (0)