You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like quite a few people are having out of memory errors with serverless-bundle. We're seeing many of these on Seed. It seems like a lot of it is for TS projects with functions being packaged individually and the type checkers that are spawned. But I think there are some JS ones as well.
I've started recommending serverless-esbuild. But I could use some help figuring out what the issue is, so we can fix it here.
@jayair The serverless-wepack plugin also had this issue and they fixed it by passing a concurrency number to limit the number of parallel packaging and type checking.
Since serverless-bundle uses serverless-webpack checkout this pull request that was made to the serverless-webpack repo. Maybe you could use their implementation to fix this issue.
Activity
louisholley commentedon Mar 8, 2021
just a bump to say this is affecting us - will check out
serverless-esbuildthank you @jayairADrejta commentedon Apr 6, 2021
@jayair The serverless-wepack plugin also had this issue and they fixed it by passing a concurrency number to limit the number of parallel packaging and type checking.
Since serverless-bundle uses serverless-webpack checkout this pull request that was made to the serverless-webpack repo. Maybe you could use their implementation to fix this issue.
Support serverless-webpack concurrency option