5.5.0
New features were added in that release 🎉
Again, thanks to contributors! 🤝
We added the ability to specify the node_modules relative dir
This'll help people using monorepo. You define this option like that:
# serverless.yml
custom:
webpack:
includeModules:
nodeModulesRelativeDir: '../../' # relative path to current working directory.Fix the spawn E2BIG error when zipping
While fixing a bug when using the excludeRegex option a new one appear when we give a huge files list to the zip command. It crashed with the E2BIG error.
Now, if you define the excludeRegex option, we'll never use the zip command but the NodeJS way to create the zip to avoid that error. It'll be slower but it'll work.
Extends the --no-build option to serverless offline start
In #770, #649 & #501, thanks to @nponeccop, @francisu & @todda00
Extends the --no-build option to serverless offline start and serverless offline, allowing the ability to use previously compiled files from either a previous serverless offline start (when keeping output files) or from a direct serverless webpack
Add Serverless Container Support
It adds support for Docker Images as Custom Runtimes. Check the doc about that: https://github.com/serverless-heaven/serverless-webpack#support-for-docker-images-as-custom-runtimes
Add support for Yarn network-concurrency option
It adds the ability to specify the network-concurrency option when using Yarn as the packager.
# serverless.yml
custom:
webpack:
packager: 'yarn'
packagerOptions:
networkConcurrency: 1