eaf675caec6e3ff2ed8636a28a2f4fe96751debc99907ec9d4afb2730a142d1896ff775910fe7d2fdccebd7c501afa7b9199b488630a821e40be9266cf671a 514 B

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