 (defn transform-commonjs
   [filename src]
   (let [js      [(SourceFile/fromCode filename src)]
-        options (set-options {:lang-in :es5} (CompilerOptions.))
+        options (set-options {:lang-in :es5 :pretty-print true}
+                  (CompilerOptions.))
         comp    (doto (cl/make-closure-compiler)
                   (.init '() js options))
         root    (.parse comp (first js))]

      :lang-in
      (case v
        :es5 (.setLanguageIn compiler-options
               CompilerOptions$LanguageMode/ECMASCRIPT5))))
  compiler-options)

(defn jsx-engine []

(comment
  (spit
    (io/file "resources/ScrollResponder.out.js")
    (transform-jsx (slurp (io/file "resources/ScrollResponder.js"))))

  (println
    (transform-commonjs
      "ScrollResponder.js"
      (transform-jsx (slurp (io/file "resources/ScrollResponder.js")))))
  )