'ignore' and 'exclude' don't seem to do anything
kvarela opened this issue · comments
They don't seem to be leaving any packages out of the bundle.
Here's what my serverless.yml looks like:
package:
individually: true
include:
- src/**/*.js
functions:
graphql:
handler: src/handlers/graphql.handler
memorySize: 512 # optional, in MB, default is 1024
events:
- http:
path: graphql
method: post
cors: true
optimize:
debug: true
exclude: ['aws-sdk', 'envkey']
ignore: ['envkey']
ean-update:
handler: src/handlers/ean-update.handler
timeout: 300
events:
- schedule(1 day)
plugins:
- serverless-plugin-typescript
- serverless-offline
- serverless-plugin-optimize
And my function dir structure on Lambda:
Any ideas?
Did you solve the issue? What version of SLS are you running?