v5.15.1 includes this change: #1885
We have a function that is deployed as an image where the container build copies the bundled output from serverless-webpack.
Since this change no longer bundles the function, the container build fails.
Reproduction
serverless.yaml:
service: example-service
frameworkVersion: "3"
plugins:
- serverless-webpack
custom:
webpack:
packager: "npm"
keepOutputDirectory: true
provider:
name: aws
ecr:
images:
app_image:
path: ./
functions:
exampleFn:
image:
name: app_image
command:
- app.handler
timeout: 300
Dockerfile:
FROM public.ecr.aws/lambda/nodejs:18
COPY ./build/service ./
CMD ["app.handler"]