travel/admin/node_modules/babel-plugin-syntax-object-...
yaosen 242417d45d init... 2024-06-24 11:28:18 +08:00
..
lib init... 2024-06-24 11:28:18 +08:00
.npmignore init... 2024-06-24 11:28:18 +08:00
README.md init... 2024-06-24 11:28:18 +08:00
package.json init... 2024-06-24 11:28:18 +08:00

README.md

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