Ultimately I'd like to use the esptool-js as a module rather than having it in the codebase here.
Currently esptool-js needs some modifications to allow it to work for our use case. There are PRs open (many have been merged).
One that is not a PR is the usage of pako, which in esptool-js is used in the global scope by their index.html including the pako.js file. It should really be a module dependency.
Ultimately I'd like to use the esptool-js as a module rather than having it in the codebase here. Currently esptool-js needs some modifications to allow it to work for our use case. There are PRs open (many have been merged). One that is not a PR is the usage of pako, which in esptool-js is used in the global scope by their index.html including the pako.js file. It should really be a module dependency.