From fe1877ddb2a3fe4cb90ffcf852cbf0b54e574185 Mon Sep 17 00:00:00 2001 From: George Bougakov Date: Thu, 8 Sep 2022 17:22:45 +0300 Subject: [PATCH] Add Node.js ESM compatibility (#292) --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 857ccac3..72042d85 100644 --- a/package.json +++ b/package.json @@ -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",