Skip to content

Commit 4be9546

Browse files
committed
don't traverse into declare module
1 parent 32ffced commit 4be9546

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/transform/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ function calculateCorrelatedSpans(
146146
partialSpans.push(...result.partialSpans);
147147
},
148148

149+
TSModuleDeclaration(path) {
150+
// don't traverse into declare module
151+
path.skip();
152+
},
153+
149154
ExportDefaultDeclaration(path) {
150155
if (template) {
151156
let result = calculateCompanionTemplateSpans(path, script, template, environment);

0 commit comments

Comments
 (0)