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 4242 "@sveltejs/vite-plugin-svelte-inspector" : " ^5.0.0" ,
4343 "debug" : " ^4.4.1" ,
4444 "deepmerge" : " ^4.3.1" ,
45- "kleur" : " ^4.1.5" ,
4645 "magic-string" : " ^0.30.17" ,
4746 "vitefu" : " ^1.1.1"
4847 },
Original file line number Diff line number Diff line change 11/* 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+
38import debug from 'debug' ;
49
510/** @type {import('../types/log.d.ts').LogLevel[] } */
You can’t perform that action at this time.
0 commit comments