mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
skip 'import ...' nodes when creating variable statement for imports
This commit is contained in:
@@ -4880,7 +4880,11 @@ var __param = this.__param || function(index, decorator) { return function (targ
|
||||
writeLine();
|
||||
let started = false;
|
||||
for (let importNode of externalImports) {
|
||||
if (importNode.kind === SyntaxKind.ExportDeclaration) {
|
||||
let skipNode =
|
||||
importNode.kind === SyntaxKind.ExportDeclaration ||
|
||||
(importNode.kind === SyntaxKind.ImportDeclaration && !(<ImportDeclaration>importNode).importClause)
|
||||
|
||||
if (skipNode) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user