File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
packages/vite-plugin-svelte Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @sveltejs/vite-plugin-svelte ' : patch
3
+ ---
4
+
5
+ replace kleur dependency with builtin node: utils styleText
Original file line number Diff line number Diff line change 42
42
"@sveltejs/vite-plugin-svelte-inspector" : " ^5.0.0" ,
43
43
"debug" : " ^4.4.1" ,
44
44
"deepmerge" : " ^4.3.1" ,
45
- "kleur" : " ^4.1.5" ,
46
45
"magic-string" : " ^0.30.17" ,
47
46
"vitefu" : " ^1.1.1"
48
47
},
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
- import { cyan , red , yellow } from 'kleur/colors' ;
2
+
3
+ import { styleText } from 'node:util' ;
4
+ const cyan = ( /** @type {string } */ txt ) => styleText ( 'cyan' , txt ) ;
5
+ const yellow = ( /** @type {string } */ txt ) => styleText ( 'yellow' , txt ) ;
6
+ const red = ( /** @type {string } */ txt ) => styleText ( 'red' , txt ) ;
7
+
3
8
import debug from 'debug' ;
4
9
5
10
/** @type {import('../types/log.d.ts').LogLevel[] } */
You can’t perform that action at this time.
0 commit comments