Skip to content

Commit fab1d86

Browse files
committed
handle scope created by let directives
1 parent c9e9716 commit fab1d86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ const preprocess = text => {
253253
} else if (node.type === 'AwaitBlock') {
254254
find_contextual_names(node.value);
255255
find_contextual_names(node.error);
256+
} else if (node.type === 'InlineComponent') {
257+
node.attributes.forEach(node => node.type === 'Let' && find_contextual_names(node.expression || node.name));
256258
}
257259
if (contextual_names.length) {
258260
nodes_with_contextual_scope.add(node);

0 commit comments

Comments
 (0)