aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

Feature request: Add esbuild support for Lambda Layers

Open dmsmds opened this issue 2 years ago • 2 comments

Describe your idea/feature/enhancement

I wish SAM templates supported esbuild as a BuildMethod in the MetaData field for Lambda Layers

Proposal

I'm creating an official issue as it has been shown that Layers currently do not support esbuild, as per this issue comment[1].

Things to consider:

  1. Will this require any updates to the SAM Spec < Possibly

As per [1]: "Layers support is also something we're working on and unfortunately is not currently supported. This one requires us to address some technical challenges surrounding the way that the esbuild external API rewrites import paths"

Additional Details

References: [1] https://github.com/aws/aws-sam-cli/issues/3700#issuecomment-1060980088

dmsmds avatar Jan 05 '24 16:01 dmsmds

Thanks for creating the request @dmsmds! We will review the request for prioritization.

mildaniel avatar Jan 05 '24 16:01 mildaniel

Is there any progress on this one 👀 ? In the meantime, what would be the recommended workaround to use TypeScript with lambda layers? ...any example repo would be highly appreciated 🙏

eydelrivero avatar Jul 16 '24 09:07 eydelrivero