Skip to content

Commit

Permalink
Added new :closure-extra-annotations compiler option allowing to defi…
Browse files Browse the repository at this point in the history
…ne extra JSDoc annotation used by closure libraries.
  • Loading branch information
jeluard authored and dnolen committed Feb 6, 2015
1 parent 9df1e03 commit fd0a52c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clj/cljs/closure.clj
Expand Up @@ -173,6 +173,8 @@
(doseq [[type level] (:closure-warnings opts)]
(. compiler-options
(setWarningLevel (type warning-types) (level check-level))))
(if-let [extra-annotations (:closure-extra-annotations opts)]
(. compiler-options (setExtraAnnotationNames (map name extra-annotations))))
(when (contains? opts :source-map)
(set! (.sourceMapOutputPath compiler-options)
(:source-map opts))
Expand Down

0 comments on commit fd0a52c

Please sign in to comment.