From a0a67d9bf5ac773982e079aec626b9d6ff2060f6 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 1 May 2023 11:55:25 -0700 Subject: [PATCH] Add Node-specific export condition for ESM entrypoint that re-exports CJS --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2386973..1ae5313 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,10 @@ "exports": { ".": { "module": "./tslib.es6.js", - "import": "./modules/index.js", + "import": { + "node": "./modules/index.js", + "default": "./tslib.es6.js" + }, "default": "./tslib.js" }, "./*": "./*",