From 9ae009385ab463d688fe5819dd3e3d9920bcf818 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Fri, 14 Aug 2020 14:51:20 -0700 Subject: [PATCH] feat: add `exports` map for Native ESM; MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - was part of 2.0 – forgot to add it... --- package.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/package.json b/package.json index 83dd8d5..5eac271 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,25 @@ "json", "lite" ], + "exports": { + ".": { + "import": "./dist/index.mjs", + "require": "./dist/index.js" + }, + "./json": { + "import": "./json/index.mjs", + "require": "./json/index.js" + }, + "./lite": { + "import": "./lite/index.mjs", + "require": "./lite/index.js" + }, + "./full": { + "import": "./full/index.mjs", + "require": "./full/index.js" + }, + "./package.json": "./package.json" + }, "modes": { "json": "src/json.js", "lite": "src/lite.js",