Firestore includes two copies of grpc in node_modules which are both very large #96
Labels
api: firestore
Issues related to the googleapis/nodejs-firestore API.
🚨
This issue needs some love.
triage me
I really want to be triaged.
The node_modules for a project containing only firestore as it's dependency are quite large (~150MB depending on exact OS/configuration). Most of this comes from the grpc dependency which is about 50MB and most unfortunately is included twice. Once at the top level
node_modules/grpc
and once within the node_modules for firestore./node_modules/@google-cloud/firestore/node_modules/grpc
.Is there any way to only include grpc once when installed? Having this massive dependency makes deploying packages with firestore difficult where the size of the deployment package is constrained.
Environment details
Steps to reproduce
"@google-cloud/firestore": "^0.10.1"
yarn install --production
ornpm install --production
find . -name grpc
and note the two copies of grpc.The text was updated successfully, but these errors were encountered: