react-transform-display-names

0.0.1 • Public • Published

react-transform-display-names

This is a react-transform that retains display names even after the src has been uglified/mangled.
This is useful when you need to debug a React application that has been minified using React Devtools.

Usage

Add this to your .babelrc.

{
  "presets": [
    "react"
  ],
  "plugins": [
    ["react-transform", {
      "transforms": [{
        "transform": "react-transform-display-names"
      }]
    }]
  ]
}

Limitations

Because of how react-transform works, functional components may not retain their display names.

Thanks

Special thanks to pwmckenna for creating the start kit react-transform-noop

/react-transform-display-names/

    Package Sidebar

    Install

    npm i react-transform-display-names

    Weekly Downloads

    1

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    2.6 kB

    Total Files

    3

    Last publish

    Collaborators

    • nickdeis