Nearly Perpendicular Macaroons

    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.

    Install

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

    DownloadsWeekly Downloads

    74

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    6.54 kB

    Total Files

    8

    Last publish

    Collaborators

    • alfredo.salzillo