Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@aws-cdk/aws-lambda-nodejs] : Typescript decorator support #14454

Closed
bpred754 opened this issue Apr 29, 2021 · 2 comments
Closed

[@aws-cdk/aws-lambda-nodejs] : Typescript decorator support #14454

bpred754 opened this issue Apr 29, 2021 · 2 comments
Assignees
Labels
@aws-cdk/aws-lambda-nodejs guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged.

Comments

@bpred754
Copy link

bpred754 commented Apr 29, 2021

❓ General Issue

The Question

Is there a way to bundle TypeScript that depends on a library that requires emitDecoratorMetadata? esbuild doesn't support this configuration out of the box. There is an esbuild babel plugin to use this metadata transform plugin that may help, but as far as I can tell, we can't use esbuild plugins with the NodeJsFunction.

Environment

  • CDK CLI Version: 1.94.0 (build 2c1c0eb)
  • Module Version: 1.94.0
  • Node.js Version: v14.4.0
  • OS: macOS Big Sur version 11.2.3
  • Language (Version): Typescript v3.9.7

Other information

I am using type-graphql which requires the emitDecoratorMetadata tsconfig flag.

Thank you!

@bpred754 bpred754 added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Apr 29, 2021
@bpred754
Copy link
Author

Duplicate of #13767. Closing...

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda-nodejs guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants