babel-preset-gas
v2.0.4
Published
Babel preset for all Goolge Apps Script plugins.
Downloads
32
Maintainers
Readme
babel-preset-gas
Babel preset for all Goolge Apps Script plugins.
This preset includes the following plugins:
Example
In
export.default {
default: true
}
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"]
});