There's another "problem" imo. How to make each serverless deployment to include only the packages it uses, because packaging the whole top level node_modules folder can increase the zip size very much? This is my current problem. Probably here chipperjs could help?
Hi @rumen, we have been deploying everything under node_modules for all packages. What you suggest is possible but we didn't have the need to introduce that optimization. Another option is to package all your node_modules into a custom lambda layer and utilise that.
There's another "problem" imo. How to make each serverless deployment to include only the packages it uses, because packaging the whole top level node_modules folder can increase the zip size very much? This is my current problem. Probably here chipperjs could help?
Hi @rumen, we have been deploying everything under node_modules for all packages. What you suggest is possible but we didn't have the need to introduce that optimization. Another option is to package all your node_modules into a custom lambda layer and utilise that.