Skip to content

Commit

Permalink
Merge pull request #17027 from mgcrea/patch-source-loader
Browse files Browse the repository at this point in the history
Source-loader: Fix node.declaration edge case
  • Loading branch information
shilman committed Dec 16, 2021
2 parents 078cf5c + fa3a289 commit 8c6427b
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 8c6427b

Please sign in to comment.