amazon-kinesis-video-streams-webrtc-sdk-js
amazon-kinesis-video-streams-webrtc-sdk-js copied to clipboard
Dependencies tree is large
When I include amazon-kinesis-video-streams-webrtc in my package.json, it ends up pulling in 243MB of node_modules dependencies. This is problematic because I want to use this library in an AWS Lambda layer, whose maximum size is 250MB.
Right now I am working around this by using trial and error to manually delete dependencies until the package is small enough (12MB) for my purposes without breaking. (The only functionality in the library that I am using is new SigV4RequestSigner(...).createSignedKinesisUrl(...)
.)
Is there a better way to include this library without bringing in so many dependencies?
Edit: if there were a node.js-compatible version of https://unpkg.com/[email protected]/dist/kvs-webrtc.js, that would also solve my problem.