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 27, 2021
1 parent 6013e05 commit aa57def
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 aa57def

Please sign in to comment.