Closed andretchen0 closed 9 months ago
Start a new pull request in StackBlitz Codeflow.
This feature was released on https://github.com/unplugin/unplugin-turbo-console/releases/tag/v1.3.0
I'm glad to see that you want to integrate this plugin in tres. If you encounter any problems during this process, feel free to discuss with me.
@yuyinws
Thank you!
Clear and concise description of the problem
As a developer using Unplugin I want prefix/suffix support for:
... so that I can use e.g.,
console.warn
with the same prefix/suffix asconsole.log
.I'm working on a library and prefixing/suffixing console messages provides users of the library a clear, consistent indication that my library is generating the message.
Suggested solution
The Rollup strip() plugin optionally matches against any console methods and removes them.
That might serve as a starting point.
Alternative
No response
Additional context
Here's a StackBlitz showing only
console.log
getting prefix/suffix.Console after clicking "Print Vue":
Validations