$ cnpm 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"]
});
Copyright 2013 - present © cnpmjs.org | Home |