DEV Community

Discussion on: Cleanup the node_modules for a lighter Lambda Function

Collapse
 
lal12 profile image
Luca Adrian L

I agree to some commentors here, that bundling is the better choice. I have a project where I deploy all libs as a bundle but keep my own source as separate files. This helps for easier debugging on the fly. Though this probably is not necessary/useful when deploying a container or lambda, where a simple bundle and a source map (stored somewhere else) is the better easier choice.