Closed lucasklaassen closed 6 years ago
Thanks for the issue @lucasklaassen! I believe there is a fairly straightforward path to resolving this by creating a new file per handler instead of 1 file that imports multiple handlers. We will add this to our to-do list.
Description
serverless-webpack offers the ability to utilize webpacks Tree-Shaking and indiviually package lambda functions that only contain the modules and dependencies that they consume. This allows you to develop multiple lambda functions within the same repo or project and not bundle all of the dependencies for the entire project into every function. (just the ones that each function needs) Unfortunately it appears that the serverless-plugin-iopipe does not support this. Instead of wrapping each individual lambda function with IOPipe, it bundles everything into one file and wraps the functions within that one big file.
Application and library versions
serverless.yml
webpack.config.js