Babel plugin that automatically sets the `displayName` property for React components by prefixing the component name with its file path relative to the project root. Version 1.1.0 is stable and rarely updated. It supports function components returning JSX and class components. Unlike other displayName plugins, this one includes the file path prefix, making component stack traces more readable in production builds. Must be placed before other plugins in the Babel config to work correctly. No known security issues.
npm install babel-plugin-react-displayname-pathVerified import paths — ran on the pinned version, not inferred.
Install via yarn, add to Babel config plugins array (before other plugins), then production builds include file paths in component displayName.
Reorder plugins: put 'react-displayname-path' first.
Ensure plugin is added to the plugins array and is before any other plugins.