Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Maybe you forgot to add a plugin to resolve it?
Check http://fela.js.org/docs/basics/Rules.html#styleobject for more information.`)
}
} else {
const declarationReference = generateDeclarationReference(
property,
value,
pseudo,
media,
support
)
if (!renderer.cache.hasOwnProperty(declarationReference)) {
// we remove undefined values to enable
// usage of optional props without side-effects
if (isUndefinedValue(value)) {
renderer.cache[declarationReference] = {
className: '',
}
/* eslint-disable no-continue */
continue
/* eslint-enable */
}
const className =
renderer.selectorPrefix +
generateClassName(
renderer.getNextRuleIdentifier,
renderer.filterClassName
)
const declaration = cssifyDeclaration(property, value)
} else if (isSupport(property)) {
const combinedSupport = generateCombinedMediaQuery(
support,
property.slice(9).trim()
)
renderer._renderStyleToCache(
className,
value,
pseudo,
media,
combinedSupport
)
} else {
// TODO: warning
}
} else if (!isUndefinedValue(value)) {
ruleset[property] = value
}
return ruleset
},
{}
objectEach(style, (value, property) => {
if (isPlainObject(value)) {
style[property] = removeUndefined(value)
} else if (Array.isArray(value)) {
style[property] = value.filter(val => !isUndefinedValue(val))
} else if (isUndefinedValue(value)) {
delete style[property]
}
})
function removeUndefined(style: Object): Object {
for (const property in style) {
const value = style[property]
if (isPlainObject(value)) {
style[property] = removeUndefined(value)
} else if (Array.isArray(value)) {
style[property] = value.filter(val => !isUndefinedValue(val))
} else if (isUndefinedValue(value)) {
delete style[property]
}
}
return style
}
style[property] = value.filter(val => !isUndefinedValue(val))
} else if (isUndefinedValue(value)) {
style[property] = value.filter(val => !isUndefinedValue(val))
} else if (isUndefinedValue(value)) {