Skip to content

Commit 2c15a66

Browse files
authored
fix: import issue with cjs
1 parent ffb319d commit 2c15a66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.cjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
const ExpectHelper = require('./index.js').default;
1+
const ExpectHelper = async () => {
2+
const module = await import('./index.js');
3+
return module.default;
4+
};
25

36
module.exports = ExpectHelper;

0 commit comments

Comments
 (0)