styled-components / babel-plugin-styled-components

Improve the debugging experience and add server-side rendering support to styled-components
MIT License
1.07k stars 141 forks source link

displayName not working #412

Open JESii opened 2 months ago

JESii commented 2 months ago

I'm working with RedwoodJS, trying to use this component in the web app. I have my .baberc

{
  "plugins": [
    [
      "babel-plugin-styled-components",
      {
        "displayName": true, // generate other classname
        "fileName": false, // generate other classname
      }
    ]
  ]
}

plugin version @2.1.4 babel @7.25 I looked at the other ticket on this and the work-arounds don't work. I love this feature had have used it in past projects -- is there anything that can be done to fix this? Thanks