Babel plugin that automatically adds a displayName property to styletron-react styled components, improving debugging in React DevTools. Current version 1.2.0. Intended for use during development only. Requires @babel/core v7+. Part of the Styletron ecosystem; no other packages needed. Minimal plugin with a single purpose. Not actively maintained; Styletron project focuses on core packages.
npm install babel-plugin-transform-styletron-display-nameVerified import paths — ran on the pinned version, not inferred.
Adds the plugin to Babel config so it runs only in development mode, adding displayNames to styled components.
Use Styletron's built-in display name support or switch to React DevTools without displayName.
Ensure you are using styletron-react and not another styling library.
Apply plugin only in 'development' environment in Babel config.
npm install --save-dev @babel/core