vlad 6f123ff03e 18.07 | 6 jaren geleden | |
---|---|---|
.. | ||
lib | 6 jaren geleden | |
.npmignore | 6 jaren geleden | |
README.md | 6 jaren geleden | |
package.json | 6 jaren geleden |
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"]
});