Skip to content

Commit

Permalink
fix :js-properties getting replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
thheller committed Apr 22, 2018
1 parent b8f8d31 commit 7dbec07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/main/shadow/build/api.clj
Expand Up @@ -96,6 +96,11 @@
:js-options
default-js-options

;; string property names collected while compiling JS
;; will be used to generate externs for closure
:js-properties
#{}

:last-progress-ref
(atom (System/currentTimeMillis))

Expand Down
11 changes: 5 additions & 6 deletions src/main/shadow/build/closure.clj
Expand Up @@ -1817,13 +1817,12 @@
(update :live-js-deps conj ns)
(update :required set/union actual-requires)))))
{:required required-js-names
:js-properties #{}
:live-js-deps #{}
:dead-js-deps #{}}))]

(assoc state
::shadow-js-cache cache-index-updated
:js-properties js-properties
:dead-js-deps dead-js-deps
:live-js-deps live-js-deps)
(-> state
(update :js-properties set/union js-properties)
(assoc ::shadow-js-cache cache-index-updated
:dead-js-deps dead-js-deps
:live-js-deps live-js-deps))
)))

0 comments on commit 7dbec07

Please sign in to comment.