Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-plugin-syntax-object-rest-spread

babel6.2mMIT6.13.0

Allow parsing of object rest/spread

babel-plugin

readme

babel-plugin-syntax-object-rest-spread

Allow parsing of object rest/spread.

Installation

$ npm install 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"]
});