Skip to content

Commit

Permalink
Fix importing in CJS nodejs by adding conditional export
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Dec 7, 2024
1 parent 6cb6f2b commit 510f82a
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 510f82a

Please sign in to comment.