Skip to content

Commit

Permalink
Fix typescript import elision (#8666)
Browse files Browse the repository at this point in the history
  • Loading branch information
Retsam authored and existentialism committed Sep 10, 2018
1 parent d2b559a commit 9ad8b2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-typescript/src/index.js
Expand Up @@ -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;
Expand Down
@@ -1,3 +1,4 @@
import "lib";
import A, { B, Used } from "lib";
import Used2, { C } from "lib";
import * as D from "lib";
Expand Down
@@ -1,3 +1,4 @@
import "lib";
import { Used } from "lib";
import Used2 from "lib";
import * as Used3 from "lib";
Expand Down

0 comments on commit 9ad8b2b

Please sign in to comment.