kwelch/babel-plugin-captains-log

Allow css styling in template literals

Opened this issue · 2 comments

mqklin commented

For some reason, this code doesn't work:

console.log(`%c ${123}`, 'color:red');

(it logs %c 123 color:red)
But if I turn-off the plugin, it works as expected.

kwelch commented

I was not aware of the string substitutions within console functions. This is pretty sweet. Are you open to attempting to put in a fix for this?

mqklin commented

I'll try to take a look this week.