Error "WebAssembly.Compile is disallowed on the main thread" while using web-sdk in React/Ionic hybrid mobile app

Hello,

I am building a wallet app with React/Ionic/Capacitor and it throws me the next error after adding @concordium/web-sdk to the app

index.js:154 RangeError: WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB. Use WebAssembly.compile, or compile on a worker thread.
    at EA (index.min.js:2:49956)
    at Object.249 (index.min.js:2:28091)
    at g (index.min.js:2:3690263)
    at eval (index.min.js:2:3691088)
    at eval (index.min.js:2:3691096)
    at eval (index.min.js:2:39)
    at eval (index.min.js:2:62)
    at Object../node_modules/@concordium/rust-bindings/lib/wallet/web/umd/index.min.js (bundle.js:391:1)
    at __webpack_require__ (bundle.js:12228:42)
    at eval (HdWallet.js:5:90)

Fixed with applying bundler optimizations steps written in this page: Optimizing bundled applications | Concordium JS-SDK