how to solve webpack and bcrypt incompatibility issue

Multi tool use
Multi tool use


I found bcrypt is not compatible with webpack.



Quote from issue



bcrypt is not designed to be run there. bcrypt is a native (C++)
module and only runs on node environments.



You can use bcrypt.js as a (mostly) drop-in replacement.



However bcrpt.js is 30% slower than bcrypt. And since I'm really using node environment, I still want to use bcrypt rather than bcrypt.js.



What should I do? Should I bundle my JS code without dependency in node_module, and during deployment npm install?



For those who downvoted this question: This shouldn't go to webpack or bcrypt github issues which are not support forum.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

DvuKw,TiRhHhQ
dH7c5FMDMO0dyV,HBlXwoloaE0Xjj6gxLqRRk,2J9lD8Ix 3eJeMKZrMpR,NlRr LWvxrv8zej Z5ApF5Yx,4 kAhF5

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận