From 8d75bd3daa10f4c1e449c4915ee97f0da6314098 Mon Sep 17 00:00:00 2001 From: Maxim Kotelnikov Date: Wed, 26 May 2021 22:52:06 +0200 Subject: [PATCH] Conditional export support --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index d336ae5..9e51c8a 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,10 @@ "browser": "rbush.min.js", "jsdelivr": "rbush.min.js", "unpkg": "rbush.min.js", + "exports": { + "import": "./index.js", + "require": "./rbush.min.js" + }, "devDependencies": { "@rollup/plugin-buble": "^0.21.1", "@rollup/plugin-node-resolve": "^7.1.1",