Skip to content

Commit 1777b68

Browse files
authored
fix(interop): fix export and use commonJS (#53)
1 parent 6bb327d commit 1777b68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ function createSharedReactContext<T>(
3434
return context;
3535
}
3636

37-
export default createSharedReactContext;
37+
export = createSharedReactContext;

tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"compilerOptions": {
33
"jsx": "react",
44
"allowSyntheticDefaultImports": true,
5+
"esModuleInterop": true,
56
"types": ["node"],
67
"outDir": "./dist",
78
"allowJs": true,
89
"target": "es6",
10+
"module": "commonjs",
911
"moduleResolution": "node",
1012
"strict": true
1113
},

0 commit comments

Comments
 (0)