1.0.0 • Published 6 years ago
babel-plugin-rewrite-stylename v1.0.0
babel-plugin-rewrite-stylename
Transforms styleName
to className
.
Helps create stable snapshots when using babel-plugin-react-css-modules
. styleName
will be rewritten to className
(and if a className
already exists, they will be merged). Add it to your .babelrc
like so:
{
"env": {
"test": {
"plugins": ["rewrite-stylename"]
}
}
}
1.0.0
6 years ago