A plugin for Babel v6 which transforms inline styles defined in JavaScript modules into class names so they become available to, e.g. the `className` prop of React elements. While transforming, the plugin processes all JavaScript style definitions found and bundles them up into a CSS file, ready to be requested from your web server.
I open a PR to discuss the support of nested selector (issue #24)
I propose to handle global nesting using a parent prop in the specification object that is generated
Another way to support that is to it like in sass, using & char
hello
I open a PR to discuss the support of nested selector (issue #24) I propose to handle global nesting using a parent prop in the specification object that is generated
Another way to support that is to it like in sass, using
&
charshould generate
what do you prefer ? and given i'm pretty new to babel-plugin, is there a simpler solution ?