Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module ctypto issue when vite build #1587

Open
chunyang-infstones opened this issue May 14, 2024 · 0 comments
Open

Module ctypto issue when vite build #1587

chunyang-infstones opened this issue May 14, 2024 · 0 comments

Comments

@chunyang-infstones
Copy link

chunyang-infstones commented May 14, 2024

I'm using @cosmjs/stargate package on my website, a react project. When I run vite build command, I will get a warning as bellow:

[plugin:vite:resolve] [plugin vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/Users/gechunyang/Documents/infstones/codes/dev-fte/webservice/webservice/client/node_modules/@cosmjs/crypto/build/random.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

node_modules/@protobufjs/inquire/index.js (12:18): Use of eval in "node_modules/@protobufjs/inquire/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.

This warning won't affect the functionality of my production, but I want to make sure that it won't cause any security issue or have other danger?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant