AnomalyInnovations / serverless-bundle

Optimized packages for ES6 and TypeScript Node.js Lambda functions without any configuration.
https://serverless-stack.com/chapters/package-lambdas-with-serverless-bundle.html
MIT License
535 stars 157 forks source link

Package only specific lambdas #36

Open gndelia opened 4 years ago

gndelia commented 4 years ago

Unsure if this belong to here or serverless, but here it goes

There's a lambda in C# in my serverless.yml. I wanted to use an authorizer for that lambda that's in js, so I need to transpile only the authorizer (and package it). However, when I add the plugin to serverless.yml it tries to package the C# lambda configuration, and it fails to find such handler (obviously, because it is in C#).

Is there a way for this package to only package a function and not all of them with the plugin? So I would package with this plugin, I would use another to package C# and serverless to deploy them in a custom script.

Thanks!

jayair commented 4 years ago

Hmmm this one is tricky. I haven't tried to do this before so I don't really know. I don't think serverless-webpack supports this either?

gndelia commented 4 years ago

I also asked the same in serverless forum https://forum.serverless.com/t/limit-plugin-to-a-specific-lambda/9733 but no response yet