babel-plugin-plugin
Example
In
// input code
Out
"use strict";
// output code
Installation
$ npm install babel-plugin-plugin
Usage
.babelrc
(Recommended)
Via .babelrc
{
"plugins": ["plugin"]
}
Via CLI
$ babel --plugins plugin script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["plugin"]
});