File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/svelte/src/internal/client/dev Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,15 @@ function log_entry(signal, entry) {
4343 const type = ( signal . f & DERIVED ) !== 0 ? '$derived' : '$state' ;
4444 const current_reaction = /** @type {Reaction } */ ( active_reaction ) ;
4545 const dirty = signal . wv > current_reaction . wv || current_reaction . wv === 0 ;
46- const { label : name } = signal ;
4746 const style = dirty
4847 ? 'color: CornflowerBlue; font-weight: bold'
4948 : 'color: grey; font-weight: normal' ;
49+
5050 // eslint-disable-next-line no-console
5151 console . groupCollapsed (
52- typeof name === 'string' ? `%c${ name } — ${ type } ` : `%c${ type } ` ,
52+ signal . label ? `%c${ type } %c ${ signal . label } ` : `%c${ type } %c ` ,
5353 style ,
54+ dirty ? 'font-weight: normal' : style ,
5455 typeof value === 'object' && value !== null && STATE_SYMBOL in value
5556 ? snapshot ( value , true )
5657 : value
You can’t perform that action at this time.
0 commit comments