Skip to content

Commit

Permalink
fix: Add browser export map
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Feb 18, 2021
1 parent 1f09863 commit ea306db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -26,10 +26,12 @@
},
"main": "lib/index.js",
"module": "lib/index.mjs",
"browser": "umd/graphql-ws.js",
"exports": {
".": {
"require": "./lib/index.js",
"import": "./lib/index.mjs"
"import": "./lib/index.mjs",
"browser": "./umd/graphql-ws.js"
},
"./lib/use/ws": {
"require": "./lib/use/ws.js",
Expand All @@ -38,7 +40,6 @@
"./package.json": "./package.json"
},
"types": "lib/index.d.ts",
"browser": "umd/graphql-ws.js",
"files": [
"lib",
"umd",
Expand Down

0 comments on commit ea306db

Please sign in to comment.