https://serverless-stack.com/ logo
#sst
Title
# sst
s

Sione

03/02/2022, 9:43 PM
anyone know of a way to generate the esbuild metafile along with the build file? I see that it's option in NodejsFunction construct's
bundling
props, but I'm not seeing it in the SST function
bundle
props.
f

Frank

03/03/2022, 6:57 AM
Hey @Sione, it should be pretty easy for us to put it in. Can you share your use case for this?
s

Sione

03/03/2022, 4:34 PM
@Frank I'm looking to analyze my lambda's bundle size and what goes into it like what webpack-bundle-analyzer lib does. The tool/lib I've found so far asks for esbuild metafile like this one https://bundle-buddy.com/. Do you know of any alternative ways or lib to achieve the same without metafile?
f

Frank

03/03/2022, 10:16 PM
Ah I see. Yeah bundle buddy is what i’ve seen ppl use as well.
Just to confirm, u just need it at build time. The metafile doesn’t go into ur Lambda bundle right?
s

Sione

03/03/2022, 10:52 PM
Ya build time works. It really just so I can check the size when needed. And ya probably not included in the bundle unless others have other use cases for it that requires it to be in the bundle. I just found an issue created for it here that @Mischa Spiegelmock requested before. He probably might know more use cases for the metafile than I do.
m

Mischa Spiegelmock

03/03/2022, 11:00 PM
yeah I use bundle-buddy
s

Sione

03/04/2022, 1:53 AM
Thanks for chiming in Mischa