babel/packages/babel-plugin-syntax-function-sent
2016-02-06 19:06:41 -05:00
..
2016-02-06 19:06:41 -05:00

babel-plugin-syntax-function-sent

Allow parsing of the function.sent meta property.

Installation

$ npm install babel-plugin-syntax-function-sent

Usage

.babelrc

{
  "plugins": ["syntax-function-sent"]
}

Via CLI

$ babel --plugins syntax-function-sent script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-function-sent"]
});