Closed HoPGoldy closed 3 years ago
I often use strings as function return values to avoid output annoying undefined in the console. But I noticed that HTML plugin can only handle strings output by console.log.
console.log
As an example, here is a global function that prints info:
global.showLog = () => { console.log('<span style="color: green;">Hello, World!</span>') return '<span style="color: green;">Hello, World!</span>' }
The console output is:
Is this a bug or intentionally?
I often use strings as function return values to avoid output annoying undefined in the console. But I noticed that HTML plugin can only handle strings output by
console.log
.As an example, here is a global function that prints info:
The console output is:
Is this a bug or intentionally?