mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
fix(51072): ts.preProcessFile finds import in template string after conditional expression with template strings (#51082)
This commit is contained in:
@@ -347,8 +347,8 @@ namespace ts {
|
||||
|
||||
if (scanner.getToken() === SyntaxKind.TemplateHead) {
|
||||
const stack = [scanner.getToken()];
|
||||
let token = scanner.scan();
|
||||
loop: while (length(stack)) {
|
||||
const token = scanner.scan();
|
||||
switch (token) {
|
||||
case SyntaxKind.EndOfFileToken:
|
||||
break loop;
|
||||
@@ -376,7 +376,6 @@ namespace ts {
|
||||
}
|
||||
break;
|
||||
}
|
||||
token = scanner.scan();
|
||||
}
|
||||
nextToken();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user