Skip to content

Commit

Permalink
fix isLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzhh committed Oct 9, 2023
1 parent 7e95771 commit 7e4dd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/template-compiler/bind-this.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function checkDelAndGetPath (path) {
break
}
} else if (t.isMemberExpression(current.parent)) { // case: String(a,'123').b.c
if (current.parent.computed && !t.isStringLiteral(current.parent.property)) { // case: a[b] or a.b[c.d]
if (current.parent.computed && !t.isLiteral(current.parent.property)) { // case: a[b] or a.b[c.d]
canDel = false
break
} else {
Expand Down

0 comments on commit 7e4dd76

Please sign in to comment.