Syntax exponentiation operator

Syntax only

This plugin only allows Babel to parse this syntax. If you want to transform it then see transform-exponentiation-operator.

This plugin allows Babel to parse exponentiation operators.

Installation

npm install --save-dev babel-plugin-syntax-exponentiation-operator

Usage

.babelrc

{
  "plugins": ["syntax-exponentiation-operator"]
}

Via CLI

babel --plugins syntax-exponentiation-operator script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-exponentiation-operator"]
});

© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/syntax-exponentiation-operator/