 (ns planck.core
   (:require-macros [cljs.env.macros :refer [with-compiler-env]])
-  (:require
-    [cljs.analyzer :as ana]
-    [cljs.tools.reader :as r]
-    [cljs.tagged-literals :as tags]
-    [cljs.source-map :as sm]
-
+  (:require [cljs.analyzer :as ana]
+            [cljs.tools.reader :as r]
+            [cljs.tagged-literals :as tags]
+            [cljs.source-map :as sm]
             [cljs.js :as cljs]
             [cljs.repl :as repl]
             [cljs.stacktrace :as st]

      (cb nil))))

(defn require [macros-ns? sym reload]
  (cljs.js/require
    {:*compiler*     st
     :*load-fn*      load
     :*eval-fn*      cljs/js-eval}

  ;(println "Loading analysis cache")
  (let [rdr (transit/reader :json)
        cache (transit/read rdr json)]
    (cljs/load-analysis-cache! st 'cljs.core cache)))

(defonce current-ns (atom 'cljs.user))

