Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 444 Bytes

README.md

File metadata and controls

51 lines (33 loc) · 444 Bytes

babel-plugin-plugin

Example

In

// input code

Out

"use strict";

// output code

Installation

$ npm install babel-plugin-plugin

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["plugin"]
}

Via CLI

$ babel --plugins plugin script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["plugin"]
});