fix kleur thing

This commit is contained in:
Rich Harris
2019-02-07 08:47:02 -05:00
parent 0a87204593
commit 4f6b2dcb7c

View File

@@ -268,12 +268,12 @@ async function _build(
oncompile: event => {
let banner = `built ${event.type}`;
let c = colors.cyan;
let c = (txt: string) => colors.cyan(txt);
const { warnings } = event.result;
if (warnings.length > 0) {
banner += ` with ${warnings.length} ${warnings.length === 1 ? 'warning' : 'warnings'}`;
c = colors.yellow;
c = (txt: string) => colors.cyan(txt);
}
console.log();