We’ve got a Serverless stack that bundles a VueJs front end with a Node and MySql using back end.
This means we have a lot of dev dependencies in package.json, which sls deploy
/sls package
correctly uses to only include the non-dev ones in the Lambda.
Our deployment .zip was over 20meg. Until we excluded node_modules/.*
(etc) which just seems to be cache and bits of TypeScript we don’t need for Lambda.
Is this expected ? Are we doing something wrong ?
Further details at Packages ~60meg of .../node_modules/.cache/ by default · Issue #11595 · serverless/serverless · GitHub (but there’s also a thousand open issues there so not sure if that’s the best place to report things).