bcrypt.js
bcrypt.js copied to clipboard
Vite: Module "crypto" has been externalized for browser compatibility
Vite 5 shows this warning:
[plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility,
imported by "/.../node_modules/bcryptjs/dist/bcrypt.js".
See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility
for more details.
I think this error would not occur if this package would use the exports field in package.json and export a browser/node version.
请问该怎么处理呢,我也是在浏览器出来这个警告
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!