25b90cbf5e82d75854a5866ffd0837d81fdd848d26e45a370df892908119e3c09f7864b010685d13d076a91af86b08b0e135ddd1f932248328cd3c385cb544 513 B

1234567891011121314151617181920212223242526272829303132333435
  1. # babel-plugin-transform-es2015-destructuring
  2. > Compile ES2015 destructuring to ES5
  3. ## Installation
  4. ```sh
  5. npm install --save-dev babel-plugin-transform-es2015-destructuring
  6. ```
  7. ## Usage
  8. ### Via `.babelrc` (Recommended)
  9. **.babelrc**
  10. ```json
  11. {
  12. "plugins": ["transform-es2015-destructuring"]
  13. }
  14. ```
  15. ### Via CLI
  16. ```sh
  17. babel --plugins transform-es2015-destructuring script.js
  18. ```
  19. ### Via Node API
  20. ```javascript
  21. require("babel-core").transform("code", {
  22. plugins: ["transform-es2015-destructuring"]
  23. });
  24. ```