Merge sibling variables transform

Merge sibling variable declarations.

Example

In

var foo = "bar";
var bar = "foo";

Out

var foo = "bar",
    bar = "foo";

Installation

$ npm install babel-plugin-transform-merge-sibling-variables

Usage

Add the following line to your .babelrc file:

{
  "plugins": ["transform-merge-sibling-variables"]
}