JSPM

serverless-plugin-tree-prune

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q20191F
  • License BSD-3-Clause

Prune the dependency tree and only include files needed

Package Exports

  • serverless-plugin-tree-prune
  • serverless-plugin-tree-prune/index.js

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-tree-prune) 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-tree-prune

Based on serverless-plugin-tree-shake

Shake the file dependency tree and only include files needed.

install

yarn add --dev serverless-plugin-tree-prune
npm install --save-dev serverless-plugin-tree-prune

usage

plugins:
  - serverless-plugin-tree-prune
package:
  excludeDevDependencies: false

This plugins supports typescript natively. It uses the installed typescript package, reads the appropriate config, and transpiles to js according to that config. You can see examples on the __fixtures__ that start with ts-.

individually

This plugins supports bundling functions individually. Just use that option accordingly:

package:
  individually: true
  excludeDevDependencies: false