gajus/babel-plugin-react-css-modules
Transforms styleName to className using compile time CSS module resolution. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3560
- days_rel: n/a
- days_push: 1484
- n_releases_24m: 0
Adoption not part of the score
2034 stars · 159 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Babel plugin that transforms React's styleName attribute into className at compile time using CSS module resolution. It offers much lower runtime overhead and bundle size than the runtime react-css-modules alternative.
Use cases
- use css modules in react without runtime overhead
- resolve styleName to className at build time
- speed up react css modules performance
- reduce bundle size compared to react-css-modules
- support dynamic styleName resolution in react components
- migrate from react-css-modules to a babel-based approach
When to choose
- you use React with CSS Modules and want minimal runtime cost
- you need a small footprint alternative to react-css-modules
- your build pipeline already uses Babel
When to avoid
- your project does not use Babel
- you need actively maintained software with timely bug fixes
- you use modern CSS Modules support built into bundlers like webpack or Vite
Facets
plugin · maturity maintenance
build-tool css-framework frontend-framework web-development frontend developer-tools babel-plugin css-modules react compile-time stylename nodejs javascript
2 sources
- readme: https://github.com/gajus/babel-plugin-react-css-modules · fetched 2026-08-28 · 679f18b57a12
- registry_npm: https://registry.npmjs.org/babel-plugin-react-css-modules · fetched 2026-08-29 · 36540f81f15d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gajus/babel-plugin-react-css-modules | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="gajus/babel-plugin-react-css-modules")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem