Enigmatic-Smile / serverless-plugin-optimize

⛔️ DEPRECATED ⛔️ Bundle with Browserify, transpile and minify with Babel automatically to your NodeJS runtime compatible JavaScript

Home Page:https://www.npmjs.com/package/serverless-plugin-optimize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'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:
image

Any ideas?

Did you solve the issue? What version of SLS are you running?