You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2021. It is now read-only.
* Externals not to be bundled with your lambda, default to all Node.js builtin modules and aws-sdk. Modules I use this for: @sentry/serverless for example
49
+
*/
50
+
readonlyexternals?: ["aws-sdk"];
51
+
47
52
/**
48
53
* Whether to automatically reuse TCP connections when working with the AWS
49
54
* SDK for JavaScript.
@@ -83,6 +88,9 @@ export class NodejsFunction extends lambda.Function {
83
88
thrownewError(`Cannot find entry file at ${entryFullPath}`);
84
89
}
85
90
91
+
constuserExternals=props.externals??[];
92
+
constdefaultExternals=["aws-sdk"];
93
+
86
94
consthandler=props.handler??"handler";
87
95
constdefaultRunTime=
88
96
nodeMajorVersion()>=14
@@ -257,7 +265,10 @@ export class NodejsFunction extends lambda.Function {
0 commit comments