Skip to content

Commit

Permalink
fix(interop): fix export and use commonJS (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
xAndreiLi authored Jan 15, 2025
1 parent 6bb327d commit 1777b68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ function createSharedReactContext<T>(
return context;
}

export default createSharedReactContext;
export = createSharedReactContext;
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"compilerOptions": {
"jsx": "react",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"types": ["node"],
"outDir": "./dist",
"allowJs": true,
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"strict": true
},
Expand Down

0 comments on commit 1777b68

Please sign in to comment.