Skip to content

Recommended way to build multiple lambdas with tree-shaking #11111

Answered by doteric
doteric asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @samuel-pipelaunch ,
So I've decided to drop that one point "Retain file/directory structure of output (not bundle into one file)", because I couldn't find anything that suited every single of my point and started to use esbuild (retaining the structure could maybe be possible in the future with esbuild though https://esbuild.github.io/api/#splitting). Personally I only deploy lambdas using terraform therefore I decided to drop serverless as a whole and created a "function packager" of my own.
https://www.npmjs.com/package/funpack (https://github.com/doteric/funpack)
Feel free to use it and report and issues or ideas you have.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@doteric
Comment options

Answer selected by doteric
Comment options

You must be logged in to vote
1 reply
@doteric
Comment options

Comment options

You must be logged in to vote
1 reply
@doteric
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants