anyone know of a way to generate the esbuild metaf...
# sst
s
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
Hey @Sione, it should be pretty easy for us to put it in. Can you share your use case for this?
s
@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
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
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
yeah I use bundle-buddy
s
Thanks for chiming in Mischa