gajus/babel-plugin-react-css-modules

Classnames have trailing whitespace when spread is used

オープン

#262 opened on 2019/06/30

 (3 件のコメント) (4 件のリアクション) (0 人の担当者)JavaScript (159 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (2,034 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

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