Skip to content

Commit 65b1e0b

Browse files
cardosowjhsf
andauthored
chore: use is.identifier
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
1 parent 5026ce3 commit 65b1e0b

File tree

1 file changed

+1
-1
lines changed
  • packages/@lwc/ssr-compiler/src/compile-js

1 file changed

+1
-1
lines changed

packages/@lwc/ssr-compiler/src/compile-js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,5 +274,5 @@ export default function compileJS(
274274
function isKeyIdentifier<T extends EsPropertyDefinition | EsMethodDefinition>(
275275
node: T | undefined | null
276276
): node is T & { key: Identifier } {
277-
return node?.key.type === 'Identifier';
277+
return is.identifier(node.key);
278278
}

0 commit comments

Comments
 (0)