We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
:target :nodejs
:main
1 parent 2171ae9 commit 197ff2eCopy full SHA for 197ff2e
src/main/clojure/cljs/closure.clj
@@ -1870,7 +1870,9 @@
1870
1871
(defn check-node-target [{:keys [target optimizations] :as opts}]
1872
(assert (not (and (= target :nodejs) (= optimizations :whitespace)))
1873
- (format ":nodejs target not compatible with :whitespace optimizations")))
+ (format ":nodejs target not compatible with :whitespace optimizations"))
1874
+ (assert (not (and (= target :nodejs) (= optimizations :none) (not (contains? opts :main))))
1875
+ (format ":nodejs target with :none optimizations requires a :main entry")))
1876
1877
(defn check-preloads [{:keys [preloads optimizations] :as opts}]
1878
(when (and (some? preloads) (not= optimizations :none))
0 commit comments