Open normpad opened 7 years ago
Thanks for notifying me! Optimization regressions...
In the meantime, you could require and webpack for your own application, which has worked quite well for my purposes.
@normpad Here is what I had to do to get it working:
npm install -g webpack
mv webpack.config.js webpack.config.js.bak # ignore config in current directory
webpack src/index.js curl.min.js # creates curl.min.js that attaches to the browser window object
Another snag is that you have to call curl.init() before using it. I think this was a recent addition.
Another issue is that I get an error about invalid transaction hash
when interacting with the IOTA nodes. Maybe there is a bug here.
@pRizz same problem here
Any updates on this issue?
i think this can be closed. i ran npm run build
on the master
branch today, and it produced a minified curl.min.js
in the dist folder
After running
npm install
npm run compile
The file dist/curl.min.js is not minified. It is 10,000 lines long and does not function when included in a javascript app where an old version of curl.min.js was used.