Skip to content

Commit b1a640e

Browse files
authored
Merge pull request webpack#7479 from webpack/fix/5153
Ensure static and dynamic imports use the same binding
2 parents b5b1e86 + aa6de57 commit b1a640e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/cases/chunks/issue-5153/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import x from "./module";
2+
3+
it("should export the same binding", () => {
4+
return import("./module").then(ns => {
5+
expect(x).toBe(ns.default);
6+
});
7+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default {};

0 commit comments

Comments
 (0)