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

Not compatible with css-loader@3.0.0

Aperta
#258 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
help wanted question
Lingua principale
JavaScript
Stelle
2k
Fork
159
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have `localIdentName` set to `'[path]___[name]__[local]___[hash:base64:5]'` in the `css-loader`, but as of 3.0.0 this generates a name (in css-loader) where slashes and dots aren't replaced with dashes but rather escaped.

That's a bit uglier to read now (anyway, they aren't really meant for humans) -- but the main problem is that this plugin now generates invalid `className` values because it's using the old logic.

Example:

className: `rb-client-js-modules-landing-___Landing-module__landing-page-card___kz6iY`
css: `.rb\/client\/js\/modules\/landing\/___Landing\.module__landing-page-card___kz6iY`

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.