Suggestion: move chrome-aws-lambda to peer dependency
See original GitHub issueSince the most recent version of chrome-aws-lambda
is 49.7 MB, it leaves almost no room for additional client libs in the vercel lambda.
I’ve been running into this issue and it’s really frustrating.
So my proposal is to switch chrome-aws-lambda
to be a peer dependency and allow the user of this library to choose which chrome version they want to use.
See my other comment here for the savings we’re talking about: https://github.com/neg4n/next-api-og-image/issues/23#issuecomment-1090319079
This would require also making puppeteer-core
a peer dependency, since the two versions need to match up.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
chrome-aws-lambda - npm
Chromium Binary for AWS Lambda and Google Cloud Functions. ... Start using chrome-aws-lambda in your project by running `npm i ...
Read more >npm WARN ... requires a peer of ... but none is installed. You ...
So you cannot install peer dependencies automatically with npm 3 and upwards. Updated Solution: Use following for each peer dependency to ...
Read more >Optimizing Node.js dependencies in AWS Lambda
This post shows how to bundle and minify Lambda function code to optimize performance and stay up to date with the latest version...
Read more >Time out when using chrome on lambda - jsreport forum
I am using chrome-aws-lambda to enable running chrome on lambda. I am able to run the example code from this package and it...
Read more >Ask HN: Does anyone else find the AWS Lambda developer ...
I've been using AWS lambda a bit recently, mostly as a way to glue together ... Anyone have any suggestions or share my...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/neg4n/next-api-og-image/releases/tag/4.0.1
Thanks @transitive-bullshit for your research regarding this topic 🤟🏻 Your suggestion about switching these
dependencies
topeerDependencies
seems very sensible to me. I’ll investigate the topic as well and apply the changes during this weekend 🚀