Skip to content

Commit bdb7640

Browse files
committed
Return undefined instead of createNotEmittedStatement
1 parent 221c0f3 commit bdb7640

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/transformers

1 file changed

+1
-1
lines changed

src/compiler/transformers/ts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ namespace ts {
163163
(node.kind === SyntaxKind.ImportEqualsDeclaration &&
164164
(<ImportEqualsDeclaration>node).moduleReference.kind === SyntaxKind.ExternalModuleReference)) {
165165
// do not emit ES6 imports and exports since they are illegal inside a namespace
166-
return createNotEmittedStatement(node);
166+
return undefined;
167167
}
168168
else if (node.transformFlags & TransformFlags.TypeScript || hasModifier(node, ModifierFlags.Export)) {
169169
// This node is explicitly marked as TypeScript, or is exported at the namespace

0 commit comments

Comments
 (0)