DEV Community

Discussion on: Cleanup the node_modules for a lighter Lambda Function

Collapse
 
lal12 profile image
Luca Adrian L

It is true that this can be a bit tricky, since there isn't a universal way for every kind and type of non js dependency. But there is one way or another for every one. For most cases e.g. there is a generic or specific webpack loader. And I personally rarely experienced such thing. Mostly regarding native modules for which there is a webpack loader, but might require special handling for Lambda one way or another.