Apologies if this is a silly question, I don’t have much experience with webpack.
We have a js lib for interacting with our smart contracts. It references zos-lib in order to support deploying upgradable smart contracts. It works fine when used from node.js
However, it also needs to be used from within a browser, for that we use webpack. The webpack command fails when trying to pack zos-lib. Partly because zos-lib references truffle-flattener which is a CLI not a library and webpack doesn’t seem to be able to pack CLIs (makes sense)
Is it really true that any package that references zos-lib cannot be used in a browser, or am I missing something?
Thanks for any help!