Skip to content

Commit aa6de57

Browse files
committed
Ensure static and dynamic imports use the same binding
1 parent 5653732 commit aa6de57

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)