def rewrite_css(css_module_code)
      # Parse incoming CSS into an AST
      css_root = Sass::SCSS::CssParser.new(css_module_code, "(CSSModules)", 1).parse

      Sass::Tree::Visitors::SetOptions.visit(css_root, {})
      ModuleVisitor.visit(css_root)

      css_root.render
    end
def rewrite_css(css_module_code)
      # Parse incoming CSS into an AST
      css_root = Sass::SCSS::CssParser.new(css_module_code, "(CSSModules)", 1).parse

      Sass::Tree::Visitors::SetOptions.visit(css_root, {})
      ModuleVisitor.visit(css_root)

      css_root.render
    end
Take css module code as input, and rewrite it as
 browser-friendly CSS code. Apply opaque transformations
 so that selectors can only be accessed programatically,
 not by class name literals.