AWS Lambda Packer
This function builds a list of all the dependents of a function using webpack and its node packer and creates a package with only the required files to run in Lambda.
Especially useful when you want to use babel / ES6 features and not have to worry about them running on lambda's ancient node version (v0.10)
Useage
// in a gulpfile / task runner / whatever; { const options zip: true // set to true to pack a zip file for sending to AWS functionsDir: './src/functions' }; ;}