From 4456f6a126c4bcbf8be8b663b5b4e5b3a38a0e4d Mon Sep 17 00:00:00 2001 From: Olivia Date: Fri, 22 Apr 2022 21:29:16 +0100 Subject: [PATCH] fix: package.json not defined by exports warning --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b3d3f5f8..8dddbe9b 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,11 @@ "main": "index.js", "module": "index.mjs", "exports": { - "import": "./index.mjs", - "require": "./index.js" + ".": { + "import": "./index.mjs", + "require": "./index.js" + }, + "./package.json": "./package.json" }, "scripts": { "benchmark": "node benchmark",