serverless-babel-plugin

0.2.0 • Public • Published

Serverless Babel Plugin

A Serverless plugin to compile your JavaScript code with Babel before deployment.

Setup

You need to install the plugin as well as a preset. For example the babel-preset-latest:

npm install --save-dev serverless-babel-plugin babel-preset-latest

Further you need to add the plugin to your serverless.yml and defined which preset you chose:

plugins:
  - serverless-babel-plugin
 
custom:
  babelPresets:
    - latest

Usage

Simply run serverless deploy and it will compile every JavaScript file in your service with Babel.

More info

Find a complete example here

Readme

Keywords

none

Package Sidebar

Install

npm i serverless-babel-plugin

Weekly Downloads

119

Version

0.2.0

License

MIT

Last publish

Collaborators

  • serverless-main
  • nikgraf