Skip to content

Commit af2ca80

Browse files
author
dnolen
committed
CLJS-1931: Closure Compiler {{--generate_exports}} flag not supported
1 parent f5ab470 commit af2ca80

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/main/clojure/cljs/closure.clj

+5-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
:pretty-print :print-input-delimiter :pseudo-names :recompile-dependents :source-map
164164
:source-map-inline :source-map-timestamp :static-fns :target :verbose :warnings
165165
:emit-constants :ups-externs :ups-foreign-libs :ups-libs :warning-handlers :preloads
166-
:browser-repl :cache-analysis-format :infer-externs})
166+
:browser-repl :cache-analysis-format :infer-externs :closure-generate-exports})
167167

168168
(def string->charset
169169
{"iso-8859-1" StandardCharsets/ISO_8859_1
@@ -237,6 +237,10 @@
237237
(. compiler-options
238238
(setModuleRoots (:closure-module-roots opts))))
239239

240+
(when (contains? opts :closure-generate-exports)
241+
(. compiler-options
242+
(setGenerateExports (:closure-generate-exports opts))))
243+
240244
(. compiler-options
241245
(setOutputCharset (to-charset (:closure-output-charset opts "UTF-8"))) ;; only works > 20160125 Closure Compiler
242246
)

0 commit comments

Comments
 (0)