babel/packages/babel-plugin-transform-exponentiation-operator
Daniel Tschinder 2dcee25d37 Exclude super from being assign (#4642)
Assigning of super is not allowed `var ref = super;` This fix adds an exception into
the explode helper so that super stays untouched and does not get assigned.
2016-10-03 21:04:26 -04:00
..
2015-10-29 17:51:24 +00:00
2016-05-02 19:43:49 -04:00
2015-09-15 06:12:46 +01:00

babel-plugin-transform-exponentiation-operator

Compile exponentiation operator to ES5

Installation

$ npm install babel-plugin-transform-exponentiation-operator

Usage

.babelrc

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

Via CLI

$ babel --plugins transform-exponentiation-operator script.js

Via Node API

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