Skip to content

Commit

Permalink
feat: support watch object expression
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Mar 13, 2024
1 parent 93c0b20 commit dc0ab1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyze/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ export function analyze(
const keyName = prop.key.type === 'Identifier'
? prop.key.name
: prop.key.type === 'StringLiteral'
? prop.key.value
? prop.key.value.split('.')[0]
: '';
const watchArg = tNodes.get(keyName);

Expand Down

0 comments on commit dc0ab1e

Please sign in to comment.