Skip to content

Latest commit

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

babel-plugin-putout

Use 馃悐Putout as babel plugin.

Example

-const s = 'hi';

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

import {transform} from '@babel/core';

transform('code', {
    plugins: ['putout'],
});