Skip to content

nickdeis/react-transform-display-names

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

npm i react-transform-display-names --save-dev

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

About

React Transform that retains display names even after minification

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •