From dc0ab1e38881a83cd77ad18a882b5573a41c78b5 Mon Sep 17 00:00:00 2001 From: zcf0508 Date: Wed, 13 Mar 2024 14:11:45 +0800 Subject: [PATCH] feat: support watch object expression --- src/analyze/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyze/options.ts b/src/analyze/options.ts index a310abf..04bc53c 100644 --- a/src/analyze/options.ts +++ b/src/analyze/options.ts @@ -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);