Skip to content

Instantly share code, notes, and snippets.

@mhuebert
Last active February 24, 2016 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhuebert/c9fffa98812e6627c2a8 to your computer and use it in GitHub Desktop.
Save mhuebert/c9fffa98812e6627c2a8 to your computer and use it in GitHub Desktop.
CLJS core analysis cache for use with self-hosted compiler
(ns app.cljs-core-cache
(:require
[cognitect.transit :as transit]
[cljs.js :as cljs]))
(defn print-core []
(let [writer (transit/writer :json)
cache (cljs.js/dump-core)]
(.log js/console (transit/write writer cache))))
;; when CLJS-1541 is released & Planck is updated,
;; it will be easier to do this on the command line
;; https://github.com/clojure/clojurescript/commit/cca12a51257b71a66156a090aba06dcd13949c0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment