Skip to content

Latest commit

 

History

History
 
 

babel-plugin-putout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

babel-plugin-putout

Use 🐊Putout as babel plugin.

Example

In

// input code
const s = 'hi';

Out

// output code

Installation

$ npm install babel-plugin-putout

Usage

Via .babelrc.json (Recommended)

.babelrc.json

{
    "plugins": [
        ["putout", {
            "rules": {
                "remove-unused-variables": false
            }
        }]
    ]
}

Via CLI

$ babel --plugins putout script.js

Via Node API

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