Closed ManUtopiK closed 10 months ago
Start a new pull request in StackBlitz Codeflow.
It's not easy to handle this situation on one console expression. I think we can use console.group
to modify transform logic:
// generated by plugin
console.group()
console.log("%c🚀 main.ts:6%c🔦 http://localhost:3090/client#c3JjL21haW4udHM6Njox", "padding:2px 5px; border-radius:3px 0 0 3px;margin-bottom:5px;color: #fff; background: #3178C6", "background: #00DC8250;padding:2px 5px;border-radius:0 3px 3px 0;margin-bottom:5px");
// Original console.log
console.log('%cLog Message', 'color: orange');
// generated by plugin
console.groupEnd()
It will render like this:
WDYT 👀 ?
Describe the bug
Making a complex log with color break the output of unplugin-turbo-console. Here the log of Nuxt DevTools :
And the output:
The reproduction doesn't start correctly. After
pnpm install
, stop the terminal witch ctrl+c and start nuxt withpnpm play:nuxt
.Reproduction
https://stackblitz.com/edit/github-vdn75x?file=examples%2Fnuxt%2Fapp.vue
System Info
Used Package Manager
pnpm
Validations