Bubble @screen at-rules when adding styles through plugins

This commit is contained in:
Benoît Rouleau 2019-05-26 21:31:08 -04:00
parent 973e41cb8c
commit 6ce2cfe349

View file

@ -10,6 +10,6 @@ export default function parseObjectStyles(styles) {
return _.flatMap(
styles,
style => postcss([postcssNested]).process(style, { parser: postcssJs }).root.nodes
style => postcss([postcssNested({ bubble: ['screen'] })]).process(style, { parser: postcssJs }).root.nodes
)
}