Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var postcssJs = require('postcss-js');
var style = {
a: {
color: 'green'
}
};
module.exports = postcssJs.parse(style);
'use strict'
const postcssJS = require('postcss-js')
const style = {
a: {
color: 'green'
}
}
module.exports = postcssJS.parse(style)
const numOfComposes: number = !composeMatches ? 0 : composeMatches.length
composes += numOfComposes
vars += numOfComposes
decl.remove()
}
})
const styles = expandCSSFallbacks(
extractStatic ? staticProcessor(root) : processor(root)
)
return {
styles,
staticCSSRules:
vars === 0 && extractStatic
? stringifyCSSRoot(postcssJs.parse(styles))
: [],
composesCount: composes
}
}