-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(aws-lambda-nodejs): pre compilation with tsc is not being run #18002
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-lambda-nodejsbugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp1
Description
What is the problem?
Since esbuild does not support some experimental features like emitting typescript decorator metadata a pre-compilation step was included that runs tsc before bundling.
Unfortunately, this new feature does not actually run tsc locally.
Reproduction Steps
Setup a lambda-nodejs function based on a Typescript file and set preCompilation: true.
What did you expect to happen?
tsc should be run to transpile the typescript file before bundling with esbuild.
What actually happened?
tsc is not being run.
CDK CLI Version
1.134
Framework Version
No response
Node.js Version
14
OS
MacOS
Language
Typescript
Language Version
No response
Other information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambda-nodejsbugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp1