Skip to content

Commit

Permalink
Fix importing in CJS nodejs by adding conditional export (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk authored Dec 9, 2024
1 parent 8f9e733 commit 5e5bd28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"types": "src/main.d.ts",
"exports": {
"types": "./src/main.d.ts",
"import": "./src/main.js"
"import": "./src/main.js",
"require": "./cjs/main.cjs"
},
"files": [
"cjs/*",
Expand Down

0 comments on commit 5e5bd28

Please sign in to comment.