Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Nov 7, 2024
1 parent 507b6fd commit 1d1b941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nbb/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@
(fn [_]
((.-resolve (:require @ctx)) libname))))
(js/Promise.resolve ((.-resolve (:require @ctx)) libname)))
(.then (fn [path]
(.then (fn [path]
(let [file-url (if (str/starts-with? (str path) "file:")
path
(when (fs/existsSync path)
(when (and (or windows? reload?) (fs/existsSync path))
(str (url/pathToFileURL path))))
path (if (and reload?
;; not "node:fs" etc
Expand Down

0 comments on commit 1d1b941

Please sign in to comment.