Skip to content

Commit 4f8dde5

Browse files
anmonteiroswannodette
authored andcommitted
CLJS-2302: Disable process-shim by default in Node.js targets
1 parent 9b7847f commit 4f8dde5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,8 +2020,10 @@
20202020
(update opts :modules
20212021
#(ensure-cljs-base-module % opts)))
20222022

2023-
(defn shim-process? [opts]
2024-
(not (false? (:process-shim opts))))
2023+
(defn shim-process? [{:keys [target process-shim]}]
2024+
(if (= target :nodejs)
2025+
(true? (:process-shim opts))
2026+
(not (false? (:process-shim opts)))))
20252027

20262028
(defn add-implicit-options
20272029
[{:keys [optimizations output-dir]

0 commit comments

Comments
 (0)