Add Node.js ESM compatibility (#292)

George Bougakov 2022-09-08 17:22:45 +03:00 committed by Vladimir Mandic
parent b89123b9b2
commit a2dc24ecce
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@
"browser": "dist/human.esm.js",
"types": "types/human.d.ts",
"exports": {
"node": {
"require": "./dist/human.node.js",
"import": "./dist/human.node.js",
"module": "./dist/human.node.js"
},
"require": "./dist/human.node.js",
"import": "./dist/human.esm.js",
"script": "./dist/human.js",