babel-plugin-transform-function-sent
Patch function.sent
Last updated 8 years ago by hax .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install babel-plugin-transform-function-sent 
SYNC missed versions from official npm registry.

babel-plugin-transform-function-sent

Patch function.sent meta property

npm version build status dependencies devDependencies

Why this plugin

The official transform-regenerator plugin already support function.sent, but require generators to be transformed. Many people avoid use regenerator, because all JavaScript engines already support ES2015 generators natively, and major browsers / node 0.12+ already ship generators for years. (See also https://github.com/alekseykulikov/babel-preset-es2015-node5/issues/3 for similar discussion and result plugin transform-es2015-generator-return)

If you are one of them, this plugin is for you. It only patch function.sent, and will not touch other parts of your source code.

Installation

npm install babel-plugin-transform-function-sent

Usage

Via .babelrc (Recommended)

.babelrc

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

Via CLI

babel --plugins transform-function-sent

Via Node API

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

Use with transform-es2015-function-name

NOTE: Please put transform-es2015-function-name before this plugin. Sample:

{
	"plugins": ["transform-es2015-function-name", "transform-function-sent"]
}

Current Tags

  • 1.0.1                                ...           latest (8 years ago)
  • 7.0.0-beta.3                                ...           next (7 years ago)

10 Versions

  • 7.0.0-beta.3                                ...           7 years ago
  • 7.0.0-beta.2                                ...           7 years ago
  • 7.0.0-beta.1                                ...           7 years ago
  • 7.0.0-beta.0                                ...           7 years ago
  • 7.0.0-alpha.20                                ...           7 years ago
  • 7.0.0-alpha.19                                ...           7 years ago
  • 7.0.0-alpha.18                                ...           7 years ago
  • 7.0.0-alpha.17                                ...           7 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE