babel-plugin-preserve-arrow-function-to-string

0.0.1 • Public • Published

Build Status #babel-plugin-preserve-arrow-function-to-string

Babel plugin to preserve arrow function toString

Install

$ npm install babel-plugin-preserve-arrow-function-to-string --save-dev

Usage

.babelrc

{
  "plugins": [
    "preserve-arrow-function-to-string"
  ]
}

Motivation

Library how use metadata reflection to analyze code not work with es5 transpiled arrow function (and default parameters value, rest parameters, deconstruction ecc...). This plugin replace the native toString to match the behavior of no transpiled arrow function.

This plugin is useful with library like z how use the toString result to analyze arrow function metadata.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i babel-plugin-preserve-arrow-function-to-string

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

6.54 kB

Total Files

8

Last publish

Collaborators

  • alfredo.salzillo