fix(compiler-core): more robust member expression check in Node

This commit is contained in:
Evan You
2021-09-22 17:16:21 -04:00
parent 686d0149b6
commit 6257adeaac
2 changed files with 3 additions and 5 deletions

View File

@@ -165,10 +165,6 @@ export const isMemberExpressionNode = (
path: string,
context: TransformContext
): boolean => {
path = path.trim()
if (!validFirstIdentCharRE.test(path[0])) {
return false
}
try {
let ret: Expression = parseExpression(path, {
plugins: [...context.expressionPlugins, ...babelParserDefaultPlugins]