mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
[Internal] Warn for missing brackets (#2151)
* Warn for missing braces * Overlay, too
This commit is contained in:
4
packages/react-dev-utils/ansiHTML.js
vendored
4
packages/react-dev-utils/ansiHTML.js
vendored
@@ -82,7 +82,9 @@ function ansiHTML(txt) {
|
||||
if (color != null) {
|
||||
result += '<span style="color: #' + color + ';">' + part + '</span>';
|
||||
} else {
|
||||
if (fg != null) console.log('Missing color mapping: ', fg);
|
||||
if (fg != null) {
|
||||
console.log('Missing color mapping: ', fg);
|
||||
}
|
||||
result += '<span>' + part + '</span>';
|
||||
}
|
||||
if (_index < contentParts.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user