gajus/babel-plugin-react-css-modules
Ver no GitHubClassnames have trailing whitespace when spread is used
Open
#262 aberto em 30 de jun. de 2019
enhancementhelp wanted
Métricas do repositório
- Stars
- (2.044 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
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.