-
|
Hi, I just wanted to confirm if this can be used with the NodejsFunction construct? I saw some examples for the Function construct but as I was comparing the 2, I noticed that for Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
This package replaces usage of Both |
Beta Was this translation helpful? Give feedback.
-
|
Copy that, thank you! @mrgrain |
Beta Was this translation helpful? Give feedback.
This package replaces usage of
NodejsFunction. Instead you create aFunctionand provideTypeScriptCodeto thecodeproperty.See this example: https://github.com/mrgrain/cdk-esbuild#aws-lambda-serverless-function
Both
NodejsFunctionand@mrgrain/cdk-esbuildsolve a similar problem ("bundling TS code"), but in a different way.