JSPM

serverless-plugin-package-size

1.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 596
  • Score
    100M100P100Q103132F
  • License MIT

Check the size of your serverless functions

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.