You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm polyfilling Node.js builtins in my application using a Vite plugin. Whenever Vite encounters an import of "crypto", the plugin resolves it to "crypto-browserify". However, the issue mentioned above creates a cyclic dependency on "crypto", which ultimately breaks the build.
This condition in the upstream dependency will not be evaluated during vite build, causing Vite to resolve "crypto" in the else block, which in turn creates the cyclic dependency.
crypto-browserify
depends onbrowserify-sign@^4.2
linkbrowserify-sign@^4.2
depends onelliptic@^6.5
linkelliptic@^6.5
depends onbrorand@^1.1
linkbrorand@^1.1
usescrypto
linkThe text was updated successfully, but these errors were encountered: