web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
480 B

  1. # babel-plugin-syntax-object-rest-spread
  2. Allow parsing of object rest/spread.
  3. ## Installation
  4. ```sh
  5. $ npm install babel-plugin-syntax-object-rest-spread
  6. ```
  7. ## Usage
  8. ### Via `.babelrc` (Recommended)
  9. **.babelrc**
  10. ```json
  11. {
  12. "plugins": ["syntax-object-rest-spread"]
  13. }
  14. ```
  15. ### Via CLI
  16. ```sh
  17. $ babel --plugins syntax-object-rest-spread script.js
  18. ```
  19. ### Via Node API
  20. ```javascript
  21. require("babel-core").transform("code", {
  22. plugins: ["syntax-object-rest-spread"]
  23. });
  24. ```