Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
2nd level peerDependencies not packed when not used directly in the project #223
As I understand, dependencies are packed if :
What's the use of the second condition ? A dependency can be in
PS : The solution I use for this is to import the peer-dependency in my
Hi @guillaumervls ,
To your question: A major use case for the plugin is to let Webpack optimize the code and only bundle external modules that are actually used. This leads to much smaller packages and faster Lambda cold start times. As soon as the peer dependency bug is fixed it should be consistent again.
For dependencies that are neither peers nor referenced directly, there's a feature request #217 for the next release that will allow to explicitly add a dependency.