(defn
bootstrap-goog-base
"Reusable browser REPL bootstrapping. Patches the essential functions\n in goog.base to support re-loading of namespaces after page load."
[]
(when-not
js/COMPILED
(set!
(.-require_figwheel_backup_ js/goog)
(or js/goog.require__ js/goog.require))
(set! (.-isProvided_ js/goog) (fn [name] false))
(setup-path->name!)
(setup-ns->dependents!)
(set!
(.-addDependency_figwheel_backup_ js/goog)
js/goog.addDependency)
(set!
(.-addDependency js/goog)
(fn
[& args]
(apply addDependency args)
(apply (.-addDependency_figwheel_backup_ js/goog) args)))
(goog/constructNamespace_ "cljs.user")
(set! (.-CLOSURE_IMPORT_SCRIPT goog/global) queued-file-reload)
(set! (.-require js/goog) figwheel-require)))