Logan Smyth e732ee0c5b
Preserve import binding locations during module rewriting (#7378)
* Only wrap import references that need it.

* Preserve the import binding location for sourcemaps.

* Add tests.
2018-02-14 10:17:27 -08:00

15 lines
333 B
JavaScript

import aDefault from "one";
import { aNamed } from "two";
import { orig as anAliased } from "three";
import * as aNamespace from "four";
console.log(aDefault);
console.log(aNamed);
console.log(anAliased);
console.log(aNamespace);
console.log(aDefault());
console.log(aNamed());
console.log(anAliased());
console.log(aNamespace());