Has anyone manage to use eth-crypto in the browser? I tried to use browserify but I failed. Any hints, what to do?
This is what I did (node:10.15.1/npm:6.4.1)
npm i eth-crypto
2) Created a file
var ethcrypto = require("eth-crypto");
3) Executed browserify
browserify main.js -o eth-crypto.js
eth-crypto.js into my html.file:
5) After loding the file:
VM29:1 Uncaught ReferenceError: ethcrypto is not defined at <anonymous>:1:1
eth-crypto.js has definitely been loaded as I can see it in the network panel of chrome.