Skip to content

(aws-lambda-nodejs): pre compilation with tsc is not being run #18002

@modul

Description

@modul

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

See previous issue #13767 and corresponding PR #16543.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions