Babel plugin for automatic React display name generation with tree-shaking and prefix support, forked from @mui/internal-babel-plugin-display-name.
npm install @sku-lib/babel-plugin-display-nameForked from https://github.com/mui/mui-public/tree/master/packages/babel-plugin-display-name.
For one reason: the mui version adds a process.env.NODE_ENV check around the addition of the displayName property to React components.
This means that in production builds, the displayName property is not added.
However, our specific use case requires the displayName to be present even in production builds.
Our fork removes this check, ensuring that displayName is always added to React components regardless of the environment.