suyiScreen/node_modules/babel-plugin-syntax-exponen...
lixiaobang 18ece3f395 代码提交 2023-02-06 08:46:29 +08:00
..
lib 代码提交 2023-02-06 08:46:29 +08:00
.npmignore 代码提交 2023-02-06 08:46:29 +08:00
README.md 代码提交 2023-02-06 08:46:29 +08:00
package.json 代码提交 2023-02-06 08:46:29 +08:00

README.md

babel-plugin-syntax-exponentiation-operator

Allow parsing of the exponentiation operator.

Installation

$ npm install babel-plugin-syntax-exponentiation-operator

Usage

.babelrc

{
  "plugins": ["syntax-exponentiation-operator"]
}

Via CLI

$ babel --plugins syntax-exponentiation-operator script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-exponentiation-operator"]
});