gajus/babel-plugin-react-css-modules

Classnames have trailing whitespace when spread is used

Open

#262 opened on 2019年6月30日

GitHub で見る
 (3 comments) (4 reactions) (0 assignees)JavaScript (2,044 stars) (176 forks)batch import
enhancementhelp wanted

説明

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.

コントリビューターガイド