Serverless Packaging - Individual function packages is not working with serverless-esbuild plugin
Describe the bug According to README.md and https://www.serverless.com/plugins/serverless-esbuild, Serverless packing is supported.
I am migrating my project from serverless-plugins-typescript to serverless-esbuild. The project I am working on is a SOAP client, so I need to include the WSDL file to the corresponding lambda. serverless-pluins-typescript can handle the additional ndividual function packages correctly while serverless-esbuild failed to do so. I need to use the Root level package to include the wsdl file (so it will be included for all lambda)
To Reproduce Using https://github.com/floydspace/serverless-esbuild/tree/master/examples/minimal to start a new project
- Add a folder call wsdl
- Add a file under wsdl - let say test.wsdl
- In serverless.yaml, under handler: index.handler , add
`package:
patterns:
- ./wsdl/test.wsdl`
- Deploy it
- Go to AWS Lambda console to download the developed package
- Did not include the wsdl folder and the file
Expected behavior Include the wsdl folder and the file
Versions (please complete the following information):
- OS: Mac / Linux (Codebuild)
- Serverless Framework Version: 3.22.0
- Plugin Version: 1.42.0
Current workaround Add the package patterns in the root level