Skip to content

Commit

Permalink
fix: let overwrite exclude option defauls
Browse files Browse the repository at this point in the history
fix #9
  • Loading branch information
floydspace committed Dec 13, 2020
1 parent 169ad0c commit e34480c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class NodejsFunction extends lambda.Function {

const withDefaultOptions = mergeRight(DEFAULT_BUILD_OPTIONS);
const buildOptions = withDefaultOptions<es.BuildOptions>(props.esbuildOptions ?? {});
const exclude = union(props.exclude || [], ['aws-sdk']);
const exclude = props.exclude ?? ['aws-sdk'];
const packager = props.packager ?? true;
const handler = props.handler ?? 'index.handler';
const defaultRuntime = nodeMajorVersion() >= 12
Expand Down

0 comments on commit e34480c

Please sign in to comment.