serverless-vercel-ncc

Serverless Framework plugin to work with @vercel/ncc

Usage no npm install needed!

<script type="module">
  import serverlessVercelNcc from 'https://cdn.skypack.dev/serverless-vercel-ncc';
</script>

README

Techmmunity - Serverless Vercel Ncc

Style Guide: Techmmunity CodeFactor Coveralls Tests Npm Downloads

A serverless plugin to work with @vercel/ncc.

Install

With Yarn:

yarn add serverless-vercel-ncc

With NPM:

npm i serverless-vercel-ncc

Usage

# serverless.yml

custom:
  ncc:
    concurrency: 3 # Quantity of files being compiled at the same time
    excludeDependencies: false # Exclude all the dependencies of package.json
    minify: false # @vercel/ncc option
    sourceMap: false # @vercel/ncc option
    sourceMapRegister: true # @vercel/ncc option
    dependenciesToExclude: # Dependencies to exclude (if u want to exclude some extra
      - example-dependency # dependencies, or some dependencies that aren't at
      - example-dependency # package.json)
    # Extra @vercel/ncc options aren't accepted

How to contribute?

All the details about contributing to the project are described here.