Closed ghost closed 6 years ago
I agree with you, but I believe there is a typo in your file though: "browser": ".build/lz4.js" instead of "browser": "./build/lz4.js"
Yep, fixed it..
Thanks.
This change broke webpack for me. Now I'm getting:
ERROR in /cyph/shared/node_modules/lz4/lib/utils.js
Module not found: Error: Can't resolve '../build/Release/lz4' in '/cyph/shared/node_modules/lz4/lib'
@ /cyph/shared/node_modules/lz4/lib/utils.js 38:19-50
@ /cyph/shared/node_modules/lz4/lib/static.js
@ /cyph/shared/node_modules/lz4/lib/lz4.js
@ /cyph/shared/js/cyph/crypto/potassium/sign.ts
@ /cyph/shared/js/cyph/crypto/potassium/index.ts
ERROR in /cyph/shared/node_modules/lz4/lib/utils.js
Module not found: Error: Can't resolve '../build/Release/xxhash' in '/cyph/shared/node_modules/lz4/lib'
@ /cyph/shared/node_modules/lz4/lib/utils.js 4:10-44
@ /cyph/shared/node_modules/lz4/lib/static.js
@ /cyph/shared/node_modules/lz4/lib/lz4.js
@ /cyph/shared/js/cyph/crypto/potassium/sign.ts
@ /cyph/shared/js/cyph/crypto/potassium/index.ts
This leads webpack to use the correct browser-build. Fixes #63