- 
                Notifications
    
You must be signed in to change notification settings  - Fork 417
 
Description
Problem
We tried to use Webpack 2 and the current master branch of the webpack plugin.
The bundle generation is creating a correct bundle, but the packaged node modules,
that are installed as sibling to the bundle by the plugin are missing some external modules.
I.e. although they are present in the local services' package.json, they do not appear in
the package.json that is temporarily created by the webpack plugin to install the needed
external modules.
This leads to "required module not found" errors, when executing the compiled code on AWS
after Serverless deployed it.
Root cause
The plugin parses the webpack stats to find external modules by matching the returned stats
with "external ".
See comment below: Webpack 2's dependency optimization sometimes removes first level dependencies but keeps the removed dep's second level dependencies.