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.
1 parent 3d44a6f commit 43bc148Copy full SHA for 43bc148
src/main/clojure/cljs/closure.clj
@@ -2193,10 +2193,11 @@
2193
2194
(defn check-main [{:keys [main] :as opts}]
2195
(when main
2196
- (assert (symbol? main)
2197
- (format ":main must be a symbol, got %s instead" main))
2198
- (assert (not (string/starts-with? (str main) "'"))
2199
- (format ":main must be an unquoted symbol, got %s instead" main))))
+ (assert (or (symbol? main) (string? main))
+ (format ":main must be a symbol or string, got %s instead" main))
+ (when (symbol? main)
+ (assert (not (string/starts-with? (str main) "'"))
2200
+ (format ":main must be an unquoted symbol, got %s instead" main)))))
2201
2202
(defn check-preloads [{:keys [preloads optimizations] :as opts}]
2203
(when (and (some? preloads)
0 commit comments