lib/getCriticalRules.js
function establishContainer(node) {
  return node.parent.type === 'atrule' && node.parent.name !== 'critical' ? _postcss2.default.atRule({
    name: node.parent.name,
    type: node.parent.type,
    params: node.parent.params,
    nodes: [node]
  }) : node.clone();
}
function establishContainer(node) {
  return node.parent.type === 'atrule' && node.parent.name !== 'critical' ? _postcss2.default.atRule({
    name: node.parent.name,
    type: node.parent.type,
    params: node.parent.params,
    nodes: [node]
  }) : node.clone();
}
function establishContainer ( node ) { return node . parent . type === 'atrule' && node . parent . name !== 'critical' ? _postcss2 . default . atRule ( { name : node . parent . name , type : node . parent . type , params : node . parent . params , nodes : [ node ] } ) : node . clone ( ) ; }
Establish the container of a given node. Useful when preserving media queries
or other atrules.

@param {Object} node PostCSS node.
@return {Object} A new root node with an atrule at its base.
Establish the container of a given node . Useful when preserving media queries or other atrules .