GitHub · npm · Edit this page
This plugin allows Babel to parse the function.sent
meta property
npm install --save-dev babel-plugin-syntax-function-sent
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-function-sent"]
}
babel --plugins syntax-function-sent script.js
require("babel-core").transform("code", {
plugins: ["syntax-function-sent"]
});