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

How to Ignore Third Party Component css files while using babel-plugin-react-css-modules

Aperta
#98 16 commenti 1 reazione 0 assegnatari Vedi su GitHub
question
Lingua principale
JavaScript
Stelle
2k
Fork
159
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have this situation where in one of my Component JSX file (For Eg. List.jsx) is importing the styles as follows:

```
import styles from "./css/list.rcss";
import "fixed-data-table.css";
import "./css/fixed-data-table.css";
```
1st import, the .rcss is our local css files where we use the react-css-modules rules
2nd import belongs to the FixedDataTable Component (Third Party)
3rd import is Global css file that uses standard css rules

This works well with **react-css-modules** but **babel-plugin-react-css-modules** throws the error because we are importing two anonymous imports.

Is there a workaround or fix for this?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.