My Node lambda is a reasonably small operate when it comes to what it does/strains of code. but by some means is sitting at 18mb in measurement.
I feel this could be on account of me putting in firebase and it being fairly a giant package deal.
I used to be questioning if there was a approach to scale back it?
I did have const firebase = require('firebase')
however now I modified it to:
const firebase = require('firebase/app')
however once I zip the lambda up I can nonetheless see strains this like:
including: node_modules/firebase/messaging/dist/ (saved 0%)
including: node_modules/firebase/messaging/dist/index.cjs.js.map (deflated 20%)
including: node_modules/firebase/messaging/dist/index.cjs.js (deflated 3%)
which appears to be like prefer it’s nonetheless including the messaging package deal for some cause?
is there a approach to scale back this lambda as I feel 18mb is fairly huge