@emotion/cache
Advanced tools
Comparing version 11.10.5 to 11.10.7
@@ -142,3 +142,3 @@ import { StyleSheet } from '@emotion/sheet'; | ||
if (unsafePseudoClasses) { | ||
var isNested = element.parent === children[0]; // in nested rules comments become children of the "auto-inserted" rule | ||
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` | ||
// | ||
@@ -159,3 +159,3 @@ // considering this input: | ||
var commentContainer = isNested ? children[0].children : // global rule at the root level | ||
var commentContainer = isNested ? element.parent.children : // global rule at the root level | ||
children; | ||
@@ -162,0 +162,0 @@ |
@@ -151,3 +151,3 @@ 'use strict'; | ||
if (unsafePseudoClasses) { | ||
var isNested = element.parent === children[0]; // in nested rules comments become children of the "auto-inserted" rule | ||
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` | ||
// | ||
@@ -168,3 +168,3 @@ // considering this input: | ||
var commentContainer = isNested ? children[0].children : // global rule at the root level | ||
var commentContainer = isNested ? element.parent.children : // global rule at the root level | ||
children; | ||
@@ -171,0 +171,0 @@ |
@@ -142,3 +142,3 @@ import { StyleSheet } from '@emotion/sheet'; | ||
if (unsafePseudoClasses) { | ||
var isNested = element.parent === children[0]; // in nested rules comments become children of the "auto-inserted" rule | ||
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` | ||
// | ||
@@ -159,3 +159,3 @@ // considering this input: | ||
var commentContainer = isNested ? children[0].children : // global rule at the root level | ||
var commentContainer = isNested ? element.parent.children : // global rule at the root level | ||
children; | ||
@@ -162,0 +162,0 @@ |
@@ -142,3 +142,3 @@ import { StyleSheet } from '@emotion/sheet'; | ||
if (unsafePseudoClasses) { | ||
var isNested = element.parent === children[0]; // in nested rules comments become children of the "auto-inserted" rule | ||
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` | ||
// | ||
@@ -159,3 +159,3 @@ // considering this input: | ||
var commentContainer = isNested ? children[0].children : // global rule at the root level | ||
var commentContainer = isNested ? element.parent.children : // global rule at the root level | ||
children; | ||
@@ -162,0 +162,0 @@ |
{ | ||
"name": "@emotion/cache", | ||
"version": "11.10.5", | ||
"version": "11.10.7", | ||
"description": "emotion's cache", | ||
@@ -5,0 +5,0 @@ "main": "dist/emotion-cache.cjs.js", |
@@ -168,4 +168,4 @@ import { | ||
if (unsafePseudoClasses) { | ||
const isNested = element.parent === children[0] | ||
// in nested rules comments become children of the "auto-inserted" rule | ||
const isNested = !!element.parent | ||
// in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` | ||
// | ||
@@ -186,3 +186,3 @@ // considering this input: | ||
const commentContainer = isNested | ||
? children[0].children | ||
? element.parent.children | ||
: // global rule at the root level | ||
@@ -189,0 +189,0 @@ children |
128746