Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 712e7bf commit e62f118Copy full SHA for e62f118
src/compiler/emitter.ts
@@ -6587,7 +6587,7 @@ const _super = (function (geti, seti) {
6587
// import { x, y } from "foo"
6588
// import d, * as x from "foo"
6589
// import d, { x, y } from "foo"
6590
- const isNakedImport = SyntaxKind.ImportDeclaration && !(<ImportDeclaration>node).importClause;
+ const isNakedImport = node.kind === SyntaxKind.ImportDeclaration && !(<ImportDeclaration>node).importClause;
6591
if (!isNakedImport) {
6592
write(varOrConst);
6593
write(getGeneratedNameForNode(<ImportDeclaration>node));
0 commit comments