gajus / gajus/babel-plugin-react-css-modules

Plugin doesn't resolve classnames in function

Open
#226 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
2k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

Plugin doesn't resolve the styles in the following scenario.
```
import styles from './TYTextButton.css'
import classnames from 'classnames'

const renderText = (text, textClassName) => {text}

```

I tried work arounds and came out with this approach https://github.com/shrihari-balasubramani/babel-plugin-react-css-modules/commit/a6e5849fee18c0376eb704ea012d7a0892ce0bfb

Please let me know if any better approach exists for this. Else I can raise a PR here .

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.