diff --git a/notebooks/sci_import_test.clj b/notebooks/sci_import_test.clj new file mode 100644 index 000000000..3c17ea3b9 --- /dev/null +++ b/notebooks/sci_import_test.clj @@ -0,0 +1,15 @@ +(ns sci-import-test + (:require [nextjournal.clerk :as clerk] + [clojure.core :as b])) + +(clerk/with-viewer + {:render-fn + '(fn [_] + (nextjournal.clerk.render/render-promise + (-> + (js/import "https:/esm.sh/date-fns@3.0.0/index.mjs") + (.then + (fn [lib] + (nextjournal.clerk/html + [:pre (lib.formatRelative (lib.subDays (js/Date.) 2) (js/Date.))]))))))} + nil) diff --git a/render/deps.edn b/render/deps.edn index 72f603c9b..9363859a7 100644 --- a/render/deps.edn +++ b/render/deps.edn @@ -3,7 +3,7 @@ binaryage/devtools {:mvn/version "1.0.3"} cider/cider-nrepl {:mvn/version "0.28.3"} org.babashka/sci {:git/url "https://github.com/babashka/sci" - :git/sha "c556f4474303c61da72e7a07eef496dcbf66a56e"} + :git/sha "1e15f0f6a129ef7512351efc65f7475209d8cc4c"} org.clojure/clojurescript {:mvn/version "1.11.132"} io.github.babashka/sci.nrepl {:mvn/version "0.0.2"} reagent/reagent {:mvn/version "1.2.0"}