@babel/highlight
Advanced tools
Comparing version 7.16.7 to 7.16.10
@@ -109,3 +109,3 @@ "use strict"; | ||
function highlight(code, options = {}) { | ||
if (shouldHighlight(options)) { | ||
if (code !== "" && shouldHighlight(options)) { | ||
const chalk = getChalk(options); | ||
@@ -112,0 +112,0 @@ const defs = getDefs(chalk); |
{ | ||
"name": "@babel/highlight", | ||
"version": "7.16.7", | ||
"version": "7.16.10", | ||
"description": "Syntax highlight JavaScript strings for output in terminals.", | ||
@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)", |
4882