asprouse / serverless-webpack-plugin

Use Webpack to optimize your Serverless Node.js Functions
68 stars 29 forks source link

Allow to include other modules before the lamda function gets loaded #21

Closed ghost closed 8 years ago

ghost commented 8 years ago

For example babel-polyfill with:

  entry: ['babel-polyfill']

This is required when you use regenerator-transform, because importing babel-polyfill from the lambda handler is too late.

I can add documentation if you accept this PR.

asprouse commented 8 years ago

Looks good! Just update the README to reflect the new feature and I'll pull.

ghost commented 8 years ago

I've added the documentation now. Thanks for the fast response.