stylelint-bundle-worker.js
function isOptimized(node, options) {
  if (node.parent.isOptimized) return true;
  return isType(node.parent, 'brace')
    && !isEscaped(node.parent)
    && options.expand !== true;
}
function isOptimized(node, options) {
  if (node.parent.isOptimized) return true;
  return isType(node.parent, 'brace')
    && !isEscaped(node.parent)
    && options.expand !== true;
}
Returns true if regex parens should be used for sets. If the parent `type`
is not `brace`, then we're on a root node, which means we should never
expand segments and open/close braces should be `{}` (since this indicates
a brace is missing from the set)