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

Package detail

babel-plugin-object-rest-spread

futagoza1.1kMIT0.0.0

This is 'transform-object-rest-spread' without the dependency on 'transform-es2015-destructuring'

babel-plugin, ecmascript, javascript, harmony, stage-2, object-rest-spread, destructuring

readme

npm version development dependencies license

This is 'transform-object-rest-spread' without the dependency on 'transform-es2015-destructuring'

table of contents

install

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

usage

  // without options
  {
    "plugins": ["babel-plugin-object-rest-spread"]
  }

  // with options
  {
    "plugins": [
      ["babel-plugin-object-rest-spread", {
        "loose": true,
        "extends": true
      }]
    ]
  }
via cli
  babel --plugins babel-plugin-object-rest-spread script.js
via node api
  require('babel-core').transform(source, {
    plugins: ['babel-plugin-object-rest-spread']
  })

license

Copyright (c) 2016+ Futago-za Ryuu (gitlab, github)
The MIT License, http://opensource.org/licenses/MIT