From e82e87312f51c2cfa1a3c1104091a30352023bc5 Mon Sep 17 00:00:00 2001 From: David Bonnet Date: Mon, 5 Apr 2021 23:57:26 +0200 Subject: [PATCH] fix(package): add "exports" field --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 517ed9aa..e39b855a 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,11 @@ "main": "./dist/astring.js", "module": "./src/astring.js", "types": "./astring.d.ts", + "exports": { + "import": "./src/astring.js", + "require": "./dist/astring.js", + "browser": "./dist/astring.min.js" + }, "bin": { "astring": "bin/astring" },