We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5026ce3 commit 65b1e0bCopy full SHA for 65b1e0b
packages/@lwc/ssr-compiler/src/compile-js/index.ts
@@ -274,5 +274,5 @@ export default function compileJS(
274
function isKeyIdentifier<T extends EsPropertyDefinition | EsMethodDefinition>(
275
node: T | undefined | null
276
): node is T & { key: Identifier } {
277
- return node?.key.type === 'Identifier';
+ return is.identifier(node.key);
278
}
0 commit comments