gajus / babel-plugin-react-css-modules

Transforms styleName to className using compile time CSS module resolution.
Other
2.05k stars 162 forks source link

Allow attributeNames destination and source attributes to be the same #296

Closed paperdave closed 3 years ago

paperdave commented 3 years ago

attempt to fix the bug described in #294, where you cannot use this babel config

"babel-plugin-react-css-modules": {
  "attributeNames": {
    "className": "className"
  }
}

by the way there's broken tests that happen even without this commit, and the number of failing tests did not change.

paperdave commented 3 years ago

SORRY, my commit is labelled 204 when its acutally 294! i clearly cannot read.