UNPKG

only-changed-jest-watch-plugin

Version:

Jest watch plugin for running either only the modified test (for TDD), or tests of dependant modules

36 lines (24 loc) 480 B
# babel-plugin-syntax-object-rest-spread Allow parsing of object rest/spread. ## Installation ```sh $ npm install babel-plugin-syntax-object-rest-spread ``` ## Usage ### Via `.babelrc` (Recommended) **.babelrc** ```json { "plugins": ["syntax-object-rest-spread"] } ``` ### Via CLI ```sh $ babel --plugins syntax-object-rest-spread script.js ``` ### Via Node API ```javascript require("babel-core").transform("code", { plugins: ["syntax-object-rest-spread"] }); ```