diff --git a/src/babel/traversal/path/evaluation.js b/src/babel/traversal/path/evaluation.js index 2070ab5d2b..66b1593c2c 100644 --- a/src/babel/traversal/path/evaluation.js +++ b/src/babel/traversal/path/evaluation.js @@ -57,7 +57,7 @@ export function evaluate(): { confident: boolean; value: any } { } if (path.isLiteral()) { - if (node.regex && node.value === null) { + if (node.regex) { // we have a regex and we can't represent it natively } else { return node.value;