Skip to content

Commit 1bf1f25

Browse files
committed
fix: Preserve per-build :js-options in merged-shadow-config
1 parent 9ac09aa commit 1bf1f25

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/lambdaisland/launchpad/shadow.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@
9696
k
9797
(keyword module-name (name k)))]
9898
[build-id
99-
(assoc (update-build-keys process-root module-root v)
100-
:build-id build-id
101-
:js-options (if (= "" module-path)
102-
{}
103-
{:js-package-dirs [(str module-path "/node_modules")]}))])))
99+
(cond-> (update-build-keys process-root module-root v)
100+
true
101+
(assoc :build-id build-id)
102+
(not= "" module-path)
103+
(update :js-options merge {:js-package-dirs [(str module-path "/node_modules")]}))])))
104104

105105
builds)))))
106106
(assoc :deps {})

0 commit comments

Comments
 (0)