function jssExpand() {
  function onProcessStyle(style, rule) {
    if (!style || rule.type !== 'style') return style

    if (Array.isArray(style)) {
      // Pass rules one by one and reformat them
      for (let index = 0; index < style.length; index++) {
        style[index] = styleDetector(style[index], rule)
      }
      return style
    }

    return styleDetector(style, rule)
  }

  return {onProcessStyle}
}
Adds possibility to write expanded styles.