egoist / egoist/rollup-plugin-postcss

Unused compiled CSS classes aren't eliminated

Open
#280 6 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.