How the lambda bundle process works? What is pushe...
# sst
g
How the lambda bundle process works? What is pushed to s3 as our lambda? What dependencies?
a
Subscribed
m
subscribed
t
That is no longer used
the function below,
build
is how it's built for local dev
and
bundle
is how it's built for prod
But basically we use
esbuild
to bundle all of your deps + code into a single file. It treeshakes what it can. You can omit stuff from there by using
bundle.nodeModules
or
bundle.external