Skip to content

Commit

Permalink
fix: Fix require(ESM) for Node v22
Browse files Browse the repository at this point in the history
Fixes for Node 22:
#696
#671
#668
#661
#600
... and others
  • Loading branch information
mdorda authored Jan 16, 2025
1 parent 3945d7f commit 5796291
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@
".": {
"node": {
"types": "./index.d.ts",
"import": "./index.js"
"import": "./index.js",
"default": "./index.js"
},
"default": {
"types": "./core.d.ts",
"import": "./core.js"
"import": "./core.js",
"default": "./core.js"
}
},
"./core": {
"types": "./core.d.ts",
"import": "./core.js"
"import": "./core.js",
"default": "./core.js"
}
},
"sideEffects": false,
Expand Down

0 comments on commit 5796291

Please sign in to comment.