-
-
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
Allow random expressions as long as they result in a className that begins with css #213
Conversation
src/index.js
Outdated
@@ -244,6 +244,8 @@ function deconstruct (style) { | |||
} else if (key.indexOf('@supports') === 0) { | |||
supports = supports || {} | |||
supports[key] = deconstruct(style[key]) | |||
} else if (key.indexOf('css-') === 0) { | |||
plain = { ...plain, ...style[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.
silly way to get babels object assign
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.
We have an assign
util
src/parser.js
Outdated
} | ||
|
||
// postcss -> js obj | ||
function objectifyPostcssRules (node) { |
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.
This function needs to be removed.
src/parser.js
Outdated
unknownWord (tokens) { | ||
if (tokens[0][0] === 'word') { | ||
if (/xxx(\d+)xxx/gm.exec(tokens[0][1])) { | ||
this.decl(tokens) |
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.
Codecov Report
@@ Coverage Diff @@
## master #213 +/- ##
==========================================
+ Coverage 90.33% 90.38% +0.04%
==========================================
Files 22 22
Lines 952 967 +15
Branches 255 260 +5
==========================================
+ Hits 860 874 +14
- Misses 74 75 +1
Partials 18 18
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #213 +/- ##
=========================================
- Coverage 90.12% 89.7% -0.43%
=========================================
Files 22 22
Lines 952 1000 +48
Branches 255 272 +17
=========================================
+ Hits 858 897 +39
- Misses 76 83 +7
- Partials 18 20 +2
Continue to review full report at Codecov.
|
…m/tkh44/emotion into random-expressions
closes #217
closes #179