$ npm install babel-plugin-syntax-pipeline-operator
Allow parsing of the pipeline operator |>. See the proposal for details.
$ npm install babel-plugin-syntax-pipeline-operator
.babelrc (Recommended).babelrc
{
"plugins": ["syntax-pipeline-operator"]
}
$ babel --plugins syntax-pipeline-operator script.js
require("babel-core").transform("code", {
plugins: ["syntax-pipeline-operator"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE