kbpgp
kbpgp copied to clipboard
"Buffer" not found when using with React. More docs?
I tried using this with the Typescript templates in the latest Create React App and Vitejs and ran into issues with both, even after a few attempts at using polyfills.
Both of them have issues with the Node class Buffer, it seems a dependency (salsa20) is using it directly?
I think it would be ideal to have kbpgp released to work 100% natively on the web instead of requiring Node stuff. (Though the polyfills do work for some people)
If that's not possible I think some docs explaining how to set it up in a few common web frameworks such as React using webpack or Rollup?
If I misunderstanding anything please let me know!