Add Node.js ESM compatibility (#292)

pull/293/head
George Bougakov 2022-09-08 17:22:45 +03:00 committed by GitHub
parent b89123b9b2
commit fe1877ddb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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