-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Te Fiti #154
Te Fiti #154
Conversation
…-extended # Conflicts: # package.json # test/__snapshots__/css.test.js.snap # test/__snapshots__/react.test.js.snap
…-extended # Conflicts: # package.json # test/__snapshots__/css.test.js.snap # test/__snapshots__/react.test.js.snap
…-extended # Conflicts: # src/babel.js
…to glamor-extended # Conflicts: # src/babel.js # src/inline.js # src/parser.js
src/index.js
Outdated
mq, | ||
supp, | ||
src: _src[key] | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this? I added tests for this and we add the webkit
and ms
prefixes in the babel plugin (not the moz
one since the usage of firefox versions that require the prefix is under 1%) for tagged template literals but not for objects, we could probably do it for objects if we wanted to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes remove this whole thing
name, | ||
checkRenderMessage(owner) | ||
) | ||
: void 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to keep all these warnings?
… store the AST and expressions of an object in an instance of ASTObject and then use that in parseCSS.
What:
extractStatic
option - Inline mode but if the block has 0 interpolations it is extracted into a file. If users choose, they can write all static styles and use inline styles for dynamic values. Any static style blocks are replaced with a string class name by the emotion plugin.is replaced with a string like
Why:
Composition is awesome and predictable.
TODO:
/glamor
folder and use some smaller code for that (maybe from cxs or postcss-js)[].forEach|map|reduce
with their equivilents from./utils
for consistancydisplay: flex
is converted todisplay: -webkit-box,-moz-box,-ms-flexbox,-webkit-flex,flex
If you want to help please feel free to make a PR against this branch
glamor-extended