Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cbumstead-serverless-plugin-tree-shake

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cbumstead-serverless-plugin-tree-shake

Shake the dependency tree and only include files needed

  • 1.1.14
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

serverless-plugin-tree-shake

Shake the file dependency tree and only include files needed.

serverless-plugin-tree-shake

install

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

usage

plugins:
  - serverless-plugin-tree-shake
package:
  # no need to spend time excluding dev dependencies, given that
  # serverless-plugin-tree-shake does it already
  excludeDevDependencies: false

example output before (with excludeDevDependencies enabled):

$ time sls package
33.93s user 20.17s system 82% cpu 1:05.94 total
$ tree
988 directories, 5978 files

example output after:

$ time sls package
3.77s user 1.27s system 51% cpu 9.724 total
$ tree
24 directories, 48 files

More details: BENCHMARK.md.

typescript support

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
include and exclude

You can use the include and exclude global, and per-function, configurations and it will include/exclude the especified files/patterns.

performance

Check out BENCHMARK.md - auto generated.

license

BSD-3-Clause

Keywords

FAQs

Package last updated on 09 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc