Fix typescript import elision (#8666)

This commit is contained in:
Retsam
2018-09-10 18:42:22 -04:00
committed by Brian Ng
parent d2b559af59
commit 9ad8b2bb2c
3 changed files with 3 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ export default declare((api, { jsxPragma = "React" }) => {
// Note: this will allow both `import { } from "m"` and `import "m";`.
// In TypeScript, the former would be elided.
if (stmt.node.specifiers.length === 0) {
return;
continue;
}
let allElided = true;

View File

@@ -1,3 +1,4 @@
import "lib";
import A, { B, Used } from "lib";
import Used2, { C } from "lib";
import * as D from "lib";

View File

@@ -1,3 +1,4 @@
import "lib";
import { Used } from "lib";
import Used2 from "lib";
import * as Used3 from "lib";