Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const createRenderer = () => {
const plugins = [
unit('px'),
placeholderPrefixer(),
friendlyPsuedo(),
...webPreset,
embedded(),
namedMediaQuery(mediaQueries),
]
const enhancers = [combineArrays()]
if (process.env.NODE_ENV === 'development') {
plugins.push(
validator({
logInvalid: true,
deleteInvalid: true,
})
)
plugins.push(whitelistMediaQuery(mediaQueries))