From 615b1f79c10c62ac4292da4cff3eb56006cf0547 Mon Sep 17 00:00:00 2001 From: Mike Fikes Date: Sat, 2 May 2020 12:18:10 -0400 Subject: [PATCH] CLJS-3245: self-host: cljs.analyzer namespace unconditionally requires clojure.java.io --- src/main/clojure/cljs/analyzer/api.cljc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/clojure/cljs/analyzer/api.cljc b/src/main/clojure/cljs/analyzer/api.cljc index 43cc0c1c1c..c9251fe87f 100644 --- a/src/main/clojure/cljs/analyzer/api.cljc +++ b/src/main/clojure/cljs/analyzer/api.cljc @@ -11,11 +11,13 @@ to the analyzer." (:refer-clojure :exclude [all-ns ns-interns ns-resolve resolve find-ns ns-publics remove-ns]) - (:require [cljs.analyzer :as ana] - [cljs.env :as env] - [cljs.util :as util] - [clojure.edn :as edn] - [clojure.java.io :as io])) + #?(:clj (:require [cljs.analyzer :as ana] + [cljs.env :as env] + [cljs.util :as util] + [clojure.edn :as edn] + [clojure.java.io :as io]) + :cljs (:require [cljs.analyzer :as ana] + [cljs.env :as env]))) ;; ============================================================================= ;; Useful Utilities