Closed neverendingqs closed 7 years ago
This is correct. This plugin includes dependencies with no attempts at excluding them. It's been suggested but I'm not sure how I want to go about it.
This plugin is supposed to be a size-reducing middle ground without getting in to the intricacies that something like browserify has to deal with.
I have a basic working solution to this that handles excludes against includes, but I also have an idea for how to take it even further. I'll try to get it out soon.
2.0 should support this. Please give it a try. Note that for the best filtering, you should exclude node_modules/**/aws-sdk/**
since aws-sdk could be installed underneath some dependencies.
Worked perfectly. Thanks!
(Related to #6)
I have the following (slight modification from files created with
sls create
):serverless.yml:
handler.js:
Running
sls deploy --noDeploy
produces aaws-node.zip
package that includesnode_modules/aws-sdk
.Removing the
serverless-plugin-include-dependencies
plugin produces a package that does not includenode_modules/aws-sdk
.Does this plugin ignore entries in package exclude?