1
1
# babel-plugin-transform-cssobj
2
- Babel plugin to transform css into cssobj (CSS in JS solution), map class names into cssobj localized names
2
+ Babel plugin to transform css into [ cssobj] [ ] (CSS in JS solution), map class names into cssobj localized names
3
3
4
4
[ ![ Join the chat at https://gitter.im/css-in-js/cssobj ] ( https://badges.gitter.im/css-in-js/cssobj.svg )] ( https://gitter.im/css-in-js/cssobj )
5
5
[ ![ Build Status] ( https://travis-ci.org/cssobj/babel-plugin-transform-cssobj.svg?branch=master )] ( https://travis-ci.org/cssobj/babel-plugin-transform-cssobj )
@@ -94,7 +94,7 @@ Babel plugin to transform css into cssobj (CSS in JS solution), map class names
94
94
<a class={result.mapClass('!news item active')}>link text</a></div></div>;
95
95
` ` `
96
96
97
- ** Note** : According to ** cssobj** ` mapClass` rule, the ` !news` will become ` news` and not localized (aka keep AS IS ).
97
+ ** Note** : According to [ cssobj][] ` mapClass` rule, the ` !news` will become ` news` and not localized (aka keep AS IS ).
98
98
99
99
## More Usage
100
100
@@ -126,7 +126,7 @@ You have two way to escape the transform
126
126
}
127
127
` ` `
128
128
129
- Then you can use ` makeLocal` instead of ` mapClass` , as a alias property of cssobj result
129
+ Then you can use ` makeLocal` instead of ` mapClass` , as a alias property of [ cssobj][] result
130
130
131
131
**Notice**: ` makeLocal` **must not exists** in result object to avoid conflict
132
132
@@ -141,7 +141,7 @@ You have two way to escape the transform
141
141
142
142
## More about mapName
143
143
144
- If you discard the cssobj result part, then the ` mapName` is not alias, it's a real function
144
+ If you discard the [ cssobj][] result part, then the ` mapName` is not alias, it's a real function
145
145
146
146
**Notice**: ` makeLocal` **must exists** in your scope, it will be kept as real function
147
147
@@ -175,4 +175,6 @@ You have two way to escape the transform
175
175
## TODO
176
176
177
177
- [ ] Support JSX Spread
178
- - [x] Child element should regard to parent cssobj scope
178
+ - [x] Child element should regard to parent [cssobj][] scope
179
+
180
+ [cssobj]: https://github.com/cssobj/cssobj
0 commit comments