Skip to content

Commit

Permalink
Review by liuxingbaoyu
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 2, 2023
1 parent 37b300f commit 02bea04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/babel-traverse/src/path/evaluation.ts
Expand Up @@ -431,10 +431,8 @@ function evaluateQuasis(

let i = 0;
const exprs: Array<NodePath<t.Node>> = path.isTemplateLiteral()
? path.get('expressions')
: (path as NodePath<t.TaggedTemplateExpression>)
.get('quasi')
.get('expressions');
? path.get("expressions")
: path.get("quasi.expressions");

for (const elem of quasis) {
// not confident, evaluated an expression we don't like
Expand Down

0 comments on commit 02bea04

Please sign in to comment.