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"] });
© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/syntax-function-sent/