Serverless v4 at least 10x my lambda size #12946
Unanswered
kyusungpark
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't think it's treeshaking properly and it's including libraries that aren't necessary for each lambda. How do you properly tree-shake with serverless v4? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I just noticed that my all lambdas had their zip size increase at least by 10x than what was before on v3. Has anyone ever experience this issue after switching to V4? On v3, I had serverless-esbuild and everything was good without any special configurations. V4 has serverless-esbuild built in and i was expecting it to work the same, but it obviosly is not.
Tried using same config here, but no change in lambda zip size.
Any recommendations for change?
My prev config. Added no additional config for serverless-esbuild
Tried to add default config with v4 to see if there any changes but no changes in lambda size.
Beta Was this translation helpful? Give feedback.
All reactions