From b56cede00bdb7c5c004c0d5370aa1df69cf3f7b3 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Thu, 2 May 2024 06:22:57 -0600 Subject: [PATCH] fix(bundler): reference bundle min for mjs on browser --- package.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b4e62183..86cfb434 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", - "browser": "./bundles/web.bundle.min.js", + "browser": { + "./lib/mjs/index.js": "./bundles/web.bundle.min.js", + ".": "./bundles/web.bundle.min.js" + }, "exports": { "./web": { "import": "./lib/mjs/index.js", @@ -14,14 +17,10 @@ }, "./mjs": { "import": "./lib/mjs/index.js", - "require": "./lib/cjs/index.js", - "browser": "./bundles/web.bundle.min.js", "types": "./lib/types/index.d.ts" }, ".": { "import": "./lib/mjs/index.js", - "require": "./lib/cjs/index.js", - "browser": "./bundles/web.bundle.min.js", "types": "./lib/types/index.d.ts" } },