ecash-lib methods that require initWasm() will not work if ecash-lib is a dep of a lib. For example, if we are trying to use ecash-agora in an app, and we need to use ecash-agora methods that require initWasm, like acceptTx -- this will fail even if we initWasm() before we call it.
It will pass though if we initWasm in ecash-agora before ecash-agora calls a function like shaRmd160 (which needs initWasm to work.
In general it is best practice not to modify globalThis. However in getting webassembly to work as a deb of a dep, I do not have a better idea (also not sure this will work tbh).