-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stylis
middleware support
#141
Comments
I was wondering if it'd make sense to let users define a function to transform the CSS that is passed to Stylis instead. Like: const userTransform = state.file.opts.transform || (i) => i
transformedCss = transform(
String(state.jsxId),
userTransform(css)
) This will in fact make |
@giuseppeg BTW re: 171 stylis has nesting support out of the box. |
@thysultan yup those are awesome features, I think that if we add support for a single function people can apply Stylis on their own like they would do with anything else (eg. sass or postcss). |
Fixed by #291 |
Should we add
stylis
middleware support via Babel plugin options that would be passed down tostylis.use
?The text was updated successfully, but these errors were encountered: