Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 9245884

Browse files
committed
Update fixtures to not re-import existing identifiers.
Modern Babel versions will report an error if an import declaration tries to re-import an identifier that was already imported. Update conflicting names and the corresponding test output locations. Signed-off-by: M. J. Fromberger <[email protected]>
1 parent 38b3c0b commit 9245884

8 files changed

Lines changed: 401 additions & 395 deletions

fixtures/import-declaration.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import defaultExport from "module-name";
2-
import * as name from "module-name";
2+
import * as name1 from "module-name";
33
import { x } from "module-name";
44
import { x as y } from "module-name";
55
import { x1 , x2 } from "module-name";
6-
import { x1 , x2 as y2 } from "module-name";
7-
import defaultExport, { x } from "module-name";
8-
import defaultExport, * as name from "module-name";
6+
import { x3 , x2 as y2 } from "module-name";
7+
import defaultExport1, { z } from "module-name";
8+
import defaultExport2, * as name2 from "module-name";
99
import "module-name";

0 commit comments

Comments
 (0)