Skip to content

Commit

Permalink
Fix: Tell bundlers not to bundle crypto dependency
Browse files Browse the repository at this point in the history
  * `crypto` is "server" dependency and cannot be bundled for browser
  • Loading branch information
literat committed Dec 6, 2021
1 parent 03a8e3c commit 22ee445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"browser": {
"./LmcCookieConsentManager.js": "./LmcCookieConsentManager.js",
"./LmcCookieConsentManager.cjs": "./LmcCookieConsentManager.cjs",
"./LmcCookieConsentManager.mjs": "./LmcCookieConsentManager.mjs"
"./LmcCookieConsentManager.mjs": "./LmcCookieConsentManager.mjs",
"crypto": false
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 22ee445

Please sign in to comment.