Merge pull request #7479 from webpack/fix/5153

Ensure static and dynamic imports use the same binding
This commit is contained in:
Tobias Koppers 2018-06-05 11:55:34 +02:00 committed by GitHub
commit b1a640e005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import x from "./module";
it("should export the same binding", () => {
return import("./module").then(ns => {
expect(x).toBe(ns.default);
});
});

View File

@ -0,0 +1 @@
export default {};