Last active
February 24, 2016 16:57
-
-
Save mhuebert/c9fffa98812e6627c2a8 to your computer and use it in GitHub Desktop.
CLJS core analysis cache for use with self-hosted compiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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