From 565ffb18fb3a641269c38b66c29ba7d05c8c139f Mon Sep 17 00:00:00 2001 From: Dylan Oliver Date: Thu, 17 Mar 2022 22:29:03 -0400 Subject: [PATCH] fix package.json exports to work in node as well as browser --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e5328d7449..0c6158e92d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,13 @@ "main": "build/main/index.js", "typings": "build/main/index.d.ts", "module": "build/esm/index.js", - "exports": "./", + "exports": { + "node": { + "module": "./build/esm/index.js", + "import": "./build/main/index.js" + }, + "default": "./build/main/index.js" + }, "repository": "https://github.com/status-im/js-waku", "license": "MIT OR Apache-2.0", "keywords": [