$ npm install babel-plugin-syntax-exponentiation-operator
Allow parsing of the exponentiation operator.
$ npm install babel-plugin-syntax-exponentiation-operator
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-exponentiation-operator"]
}
$ babel --plugins syntax-exponentiation-operator script.js
require("babel-core").transform("code", {
plugins: ["syntax-exponentiation-operator"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE