gajus / babel-plugin-react-css-modules

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

Classnames have trailing whitespace when spread is used #262

Open andris-silis opened 5 years ago

andris-silis commented 5 years ago

Example: JSX:

<div styleName="classA classB" {...someProps} />

Output:

<div className="classA classB " />

No trailing whitespace is added when spread is not used.

Seems like a small issue, but it breaks snapshots or className checks in tests when upgrading.

gajus commented 5 years ago

Sees like a good first PR.

giorgosavgeris commented 4 years ago

Any update on this?

Lchemist commented 4 years ago

Sees like a good first PR.

Hi Gajus, is there any update on this issue?