Fix media queries with jit and postcss7 - #4078
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4078 +/- ##
==========================================
- Coverage 86.84% 86.83% -0.02%
==========================================
Files 341 341
Lines 4835 4838 +3
Branches 919 920 +1
==========================================
+ Hits 4199 4201 +2
- Misses 561 562 +1
Partials 75 75
Continue to review full report at Codecov.
|
|
Amazing, thank you! ❤️ |
|
Awesome work, thanks guys 👍 |
|
I still seem to have the same issue even after upgraded to 2.1.2. Using |
|
@dave-calleja I have the same issue. I'm using pinging @bradlc |
|
Hey! Please create a new issue and include a minimal reproduction, we don't actively monitor closed issues/PRs. |
When using @tailwindcss/postcss7-compat and jit, media queries are not generated.
The problem is that this chunk of code: https://github.com/postcss/postcss/blob/8.2.10/lib/node.js#L44-L48
is missing in postcss 7: https://github.com/postcss/postcss/blob/7.0.35/lib/node.es6#L37
Which means that the parent of the rule is not set correctly, which then causes this bug.
This fixes #4034.