baichun fb412dddfc 堡垒之夜-工具页 | 6 anni fa | |
---|---|---|
.. | ||
lib | 6 anni fa | |
.npmignore | 6 anni fa | |
README.md | 6 anni fa | |
package.json | 6 anni fa |
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"]
});