next
Version:
The React Framework
32 lines (31 loc) • 772 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// In the web runtime, we create an alternative object that just outputs the
// message to the console without any styling. The same APIs are supported
// for compatibility:
// - chalk.red('error')
// - chalk.bold.cyan('message')
// - chalk.hex('#fff').underline('hello')
const chalk = new Proxy((s)=>s
, {
get (_, prop) {
if ([
'hex',
'rgb',
'ansi256',
'bgHex',
'bgRgb',
'bgAnsi256'
].includes(prop)) {
return ()=>chalk
;
}
return chalk;
}
});
var _default = chalk;
exports.default = _default;
//# sourceMappingURL=chalk.js.map
;