Skip to content

Commit a639bea

Browse files
committed
expose :closure-module-roots option
1 parent 367e2fb commit a639bea

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/clojure/cljs/closure.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@
201201
(. compiler-options
202202
(setExtraAnnotationNames (map name (:closure-extra-annotations opts)))))
203203

204+
(when (contains? opts :closure-module-roots)
205+
(. compiler-options
206+
(setModuleRoots (:closure-module-roots opts))))
207+
204208
(. compiler-options
205209
(setOutputCharset (to-charset (:closure-output-charset opts "UTF-8"))) ;; only works > 20160125 Closure Compiler
206210
)
@@ -1527,7 +1531,7 @@
15271531
(-> opts
15281532
(select-keys
15291533
[:closure-warnings :closure-extra-annotations :pretty-print
1530-
:language-in :language-out])
1534+
:language-in :language-out :closure-module-roots])
15311535
(set-options (CompilerOptions.))))
15321536

15331537
(defn get-js-root [closure-compiler]

0 commit comments

Comments
 (0)