babel-preset-gas

2.0.4 • Public • Published

babel-preset-gas

Babel preset for all Goolge Apps Script plugins.

This preset includes the following plugins:

Example

In

export.default {
  defaulttrue
}

Out

export["default"= {
  "default": true
}

Installation

npm install --save-dev babel-preset-gas

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["gas"]
}

Via CLI

babel --presets gas script.js

Via Node API

require("@babel/core").transform("code", {
  plugins: ["gas"]
});

Package Sidebar

Install

npm i babel-preset-gas

Weekly Downloads

3

Version

2.0.4

License

MIT

Unpacked Size

4.53 kB

Total Files

11

Last publish

Collaborators

  • fossamagna