I am using AWS Chime SDK in a browser application. It is all working well but I'm concerned about the size of the JavaScript file being sent to the browser. I am using the singlejs option which is one of the demos in the amazon-chime-sdk-js project on GitHub. The size of amazon-chime-sdk.min.js is 865KB.
I looked at the code for the build, which uses rollup. rollup.config.js has:
input: 'src/index.js'
and index.js has:
export * from 'amazon-chime-sdk-js';
Logically I thought if I could limit what is exported that would reduce the size of the output but it is not clear to me how to do this. Even better would a way of inspecting what is actually called by my client and eliminate unnecessary code. I'd value guidance on what is the best way of achieving this.