Package Exports
- serverless-plugin-package-size
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-plugin-package-size) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
serverless-plugin-package-size
Helps avoid accidentally deploying huge artifacts that are either slow to load, can't be debugged, etc.
cat serverless.yml
custom:
packageLimit: '2mb'
This will fail if your package artifact exceeds 2mb. Supports whatever bytes-iec
supports for the limit expression.