babel-plugin-auto-import-aphrodite
Auto-import StyleSheet
and css
from Aphrodite.
Before:
const style = StyleSheet
After:
const style = StyleSheet
Installation
$ npm install babel-plugin-auto-import-aphrodite
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins auto-import-aphrodite script.js
Via Node API
;