[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.
Vite 5 shows this warning:
I think this error would not occur if this package would use the
exports
field in package.json and export a browser/node version.