Closed
Description
The list of excluded packages is a union of whatever the user supplies and ['aws-sdk']
, which means you can't not exclude aws-sdk.
const exclude = union(props.exclude || [], ['aws-sdk']);
As Lambda doesn't bundle the latest version of the SDK this can be a problem if you depend on a newer SDK version. Ideally in this scenario I'd just bundle aws-sdk until the Lambda version is updated.