facebook-nodejs-business-sdk icon indicating copy to clipboard operation
facebook-nodejs-business-sdk copied to clipboard

Can not use esm version with esbuild, tree shaking not work

Open hdsuperman opened this issue 6 months ago • 0 comments

Image

I just used the conversions api, and the package size was 2mb, which is very wasteful in a serverless environment, and even exceeds the size of the entire backend code.

Would it be better to use exports instead of main in package.json to support esm modules? Thanks.

hdsuperman avatar Jun 06 '25 08:06 hdsuperman