Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies tree is large #159

Open
fblundun opened this issue Feb 4, 2022 · 0 comments
Open

Dependencies tree is large #159

fblundun opened this issue Feb 4, 2022 · 0 comments

Comments

@fblundun
Copy link

fblundun commented Feb 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant