npm serverless-webpack 5.5.0

latest releases: 5.15.0, 5.14.2, 5.14.1...
3 years ago

New features were added in that release 🎉

Again, thanks to contributors! 🤝

We added the ability to specify the node_modules relative dir

In #689, thanks to @ypxing

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

In #813, thanks to @j0k3r

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

In #723, thanks to @rogersgt

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

In #550, thanks @cfroese

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

Full changelog

  • Add ability to specify the node_modules relative dir #689
  • Fix the spawn E2BIG error when zipping #813
  • Extends the --no-build option to serverless offline start #770
  • Add Serverless Container Support #723
  • Add support for Yarn network-concurrency option #550

Don't miss a new serverless-webpack release

NewReleases is sending notifications on new releases.