Syntax object rest spread

Syntax only

This plugin only allows Babel to parse this syntax. If you want to transform it then see transform-object-rest-spread.

This plugin allows Babel to parse object rest spread syntax.

Installation

npm install --save-dev babel-plugin-syntax-object-rest-spread

Usage

.babelrc

{
  "plugins": ["syntax-object-rest-spread"]
}

Via CLI

babel --plugins syntax-object-rest-spread script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-object-rest-spread"]
});