Skip to content

Commit

Permalink
fix(bundler): reference bundle min for mjs on browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler authored and ppedziwiatr committed May 6, 2024
1 parent 0e616a3 commit b56cede
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
},
Expand Down

0 comments on commit b56cede

Please sign in to comment.