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
The text was updated successfully, but these errors were encountered:
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.