Skip to content

Commit 1d1b941

Browse files
committed
tweak
1 parent 507b6fd commit 1d1b941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nbb/core.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@
149149
(fn [_]
150150
((.-resolve (:require @ctx)) libname))))
151151
(js/Promise.resolve ((.-resolve (:require @ctx)) libname)))
152-
(.then (fn [path]
152+
(.then (fn [path]
153153
(let [file-url (if (str/starts-with? (str path) "file:")
154154
path
155-
(when (fs/existsSync path)
155+
(when (and (or windows? reload?) (fs/existsSync path))
156156
(str (url/pathToFileURL path))))
157157
path (if (and reload?
158158
;; not "node:fs" etc

0 commit comments

Comments
 (0)