Skip to content

Commit f97887e

Browse files
authored
Replaces kolorist with picocolors (#160)
1 parent f4fbab4 commit f97887e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@rollup/pluginutils": "^4.1.1",
4444
"babel-plugin-transform-hook-names": "^1.0.2",
4545
"debug": "^4.3.4",
46-
"kolorist": "^1.8.0",
46+
"picocolors": "^1.1.1",
4747
"vite-prerender-plugin": "^0.5.3"
4848
},
4949
"peerDependencies": {

src/devtools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Plugin, ResolvedConfig, normalizePath } from "vite";
22
import path from "path";
33
import debug from "debug";
4-
import * as kl from "kolorist";
4+
import pc from "picocolors";
55

66
import type { RollupFilter } from "./utils.js";
77
import { parseId } from "./utils.js";
@@ -66,7 +66,7 @@ export function preactDevtoolsPlugin({
6666
const source = config.isProduction ? "preact/devtools" : "preact/debug";
6767
code = `import "${source}";\n${code}`;
6868

69-
log(`[inject] ${kl.cyan(source)} -> ${kl.dim(id)}`);
69+
log(`[inject] ${pc.cyan(source)} -> ${pc.dim(id)}`);
7070
return code;
7171
}
7272
},

0 commit comments

Comments
 (0)