egoist / egoist/rollup-plugin-postcss
Unused compiled CSS classes aren't eliminated
Open
contribute welcome
- Dominant language
- JavaScript
- Stars
- 689
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Description
As titled. In the example below you can see that unused styles are bundled- I'd expect that rollup is able to remove them in context of `CSS-Modules`.
```jsx
var styles = {"button":"Button__button","unused":"Button__unused"};
// eslint-disable-next-line no-unused-vars
function Button() {
return /*#__PURE__*/React.createElement("div", {
className: styles.button
});
}
export default Button;
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.