Skip to content

Commit

Permalink
Fix source-loader node.declaration edge case (closes #16984)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Dec 16, 2021
1 parent 9fd8469 commit fa3a289
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -36,7 +36,7 @@ function findTemplate(templateName, program) {
declarations = node.declarations;
} else if (
node.type === 'ExportNamedDeclaration' &&
node.declaration.type === 'VariableDeclaration'
node.declaration?.type === 'VariableDeclaration'
) {
declarations = node.declaration.declarations;
}
Expand Down

0 comments on commit fa3a289

Please sign in to comment.