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