Closed chenrui333 closed 1 year ago
How is that single JS then referenced in my actual function? Does esbuild handle that as well?
I guess this thread has now completely derailed, so I'm going to unsubscribe. However, relevant to the recent discussion, please take a look at "@vercel/ncc". We've been using it for hundreds of production lambda functions (and billions of executions) to bring down cold start / package size. It might take a bit of tinkering to get to work (depending on your dependencies - really helps if you have tests you can run against the compiled code), but the impact on cold start times is fantastic.
@ffxsam I gave esbuild a quick test, and it seems to be working, mostly. I don't think tree-shaking is working by default though, as an included package I wrote is having all its functions bundled, not just the one being used in my main file.
@paul-uz plz read https://esbuild.github.io/api/#tree-shaking and stop posting irrelevant comments here )
Even though we are still waiting for node v16 base image, this is the issue tracker for node v18 base image
https://nodejs.org/en/blog/announcements/v18-release-announce/