This PR fixes a bug where the stylis package used by Linaria always removes all comments in CSS, causing the postcss-transform-unit to fail to parse the /* no */ comment.
Setting the preprocessor to none could preserve the comments but lacks some features from stylis. Therefore, I decided to implement these features in a PostCSS plugin called postcss-linaria-preprocessor.
This PR fixes a bug where the stylis package used by Linaria always removes all comments in CSS, causing the
postcss-transform-unit
to fail to parse the/* no */
comment.Setting the preprocessor to
none
could preserve the comments but lacks some features from stylis. Therefore, I decided to implement these features in a PostCSS plugin calledpostcss-linaria-preprocessor
.