File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 170
170
:fn-invoke-direct :checked-arrays :closure-module-roots :rewrite-polyfills :use-only-custom-externs
171
171
:watch :watch-error-fn :watch-fn :install-deps :process-shim :rename-prefix :rename-prefix-namespace
172
172
:closure-variable-map-in :closure-property-map-in :closure-variable-map-out :closure-property-map-out
173
- :stable-names :ignore-js-module-exts })
173
+ :stable-names :ignore-js-module-exts :opts-cache })
174
174
175
175
(def string->charset
176
176
{" iso-8859-1" StandardCharsets/ISO_8859_1
2229
2229
(nil? (:closure-module-roots opts))
2230
2230
(assoc :closure-module-roots [])
2231
2231
2232
+ (nil? (:opts-cache opts))
2233
+ (assoc :opts-cache " cljsc_opts.edn" )
2234
+
2232
2235
(contains? opts :modules )
2233
2236
(ensure-module-opts )
2234
2237
2774
2777
(map (comp :externs second)
2775
2778
(get @compiler-env ::ana/namespaces )))
2776
2779
(str (util/output-directory opts) " /inferred_externs.js" )))
2777
- _ (spit (io/file (util/output-directory opts) " cljsc_opts.edn " ) (pr-str orig-opts))
2780
+ _ (spit (io/file (util/output-directory opts) ( :opts-cache opts) ) (pr-str orig-opts))
2778
2781
optim (:optimizations opts)
2779
2782
ret (if (and optim (not= optim :none ))
2780
2783
(do
Original file line number Diff line number Diff line change 296
296
(when (and output-dir (not (.exists (io/file output-dir " clojure" " browser" " repl" " preload.js" ))))
297
297
(spit (io/file " out/brepl_deps.js" )
298
298
(build/build
299
- '[(require '[clojure.browser.repl.preload])] {:optimizations :none })))
299
+ '[(require '[clojure.browser.repl.preload])]
300
+ {:optimizations :none
301
+ :opts-cache " brepl_opts.edn" })))
300
302
(repl/err-out
301
303
(println " Serving HTTP on" (:host repl-env) " port" (:port repl-env))
302
304
(println " Listening for browser REPL connect ..." ))
You can’t perform that action at this time.
0 commit comments