File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 166
166
:source-map-inline :source-map-timestamp :static-fns :target :verbose :warnings
167
167
:emit-constants :ups-externs :ups-foreign-libs :ups-libs :warning-handlers :preloads
168
168
:browser-repl :cache-analysis-format :infer-externs :closure-generate-exports :npm-deps
169
- :fn-invoke-direct :checked-arrays })
169
+ :fn-invoke-direct :checked-arrays :closure-module-roots :rewrite-polyfills :use-only-custom-externs
170
+ :watch-error-fn :watch-fn :install-deps })
170
171
171
172
(def string->charset
172
173
{" iso-8859-1" StandardCharsets/ISO_8859_1
2435
2436
([source opts compiler-env]
2436
2437
(env/with-compiler-env compiler-env
2437
2438
; ; we want to warn about NPM dep conflicts before installing the modules
2438
- (check-npm-deps opts)
2439
- (maybe-install-node-deps! opts)
2439
+ (when (:install-deps opts)
2440
+ (check-npm-deps opts)
2441
+ (maybe-install-node-deps! opts))
2440
2442
(let [compiler-stats (:compiler-stats opts)
2441
2443
checked-arrays (or (:checked-arrays opts)
2442
2444
ana/*checked-arrays*)
Original file line number Diff line number Diff line change 874
874
(print nil ))
875
875
(let [value (eval repl-env env input opts)]
876
876
(print value))))))]
877
- (cljsc/maybe-install-node-deps! opts)
877
+ (when (:install-deps opts)
878
+ (cljsc/check-npm-deps opts)
879
+ (cljsc/maybe-install-node-deps! opts))
878
880
(comp/with-core-cljs opts
879
881
(fn []
880
882
(binding [*repl-opts* opts]
You can’t perform that action at this time.
0 commit comments