|
|
2 years ago | |
|---|---|---|
| .. | ||
| lib | 2 years ago | |
| .npmignore | 2 years ago | |
| README.md | 2 years ago | |
| package.json | 2 years ago | |
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"]
});