@babel/plugin-syntax-function-sent
Allow parsing of the
function.sentmeta property.
Installation
npm install --save-dev @babel/plugin-syntax-function-sent
Usage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["@babel/plugin-syntax-function-sent"]
}
Via CLI
babel --plugins @babel/plugin-syntax-function-sent script.js
Via Node API
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-syntax-function-sent"]
});