Skip to content

Commit e34480c

Browse files
committed
fix: let overwrite exclude option defauls
fix #9
1 parent 169ad0c commit e34480c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/function.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class NodejsFunction extends lambda.Function {
3030

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

0 commit comments

Comments
 (0)