From 4d9daa6dc3eaf74853f74f206cad1e2f4faebfd4 Mon Sep 17 00:00:00 2001 From: Rong Sen Ng Date: Mon, 8 Feb 2021 11:25:42 +0800 Subject: [PATCH] fix: Fix incorrect CJS exports for node@14 --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d255c17..15a995c 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,11 @@ "url": "https://github.com/motss" }, "exports": { - ".": "./dist/index.mjs", + ".": { + "import": "./dist/index.mjs", + "require": "./dist/index.js", + "default": "./dist/index.mjs" + }, "./dist/*": "./dist/*" }, "main": "./dist/index",