Fix #99: make js/import work (#100)

This commit is contained in:
Michiel Borkent 2024-12-19 17:05:28 +01:00 committed by GitHub
parent 1b021e4d14
commit 2019b3263f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -57,6 +57,8 @@
:ns-aliases {'clojure.pprint 'cljs.pprint}
:features #{:scittle :cljs}}))
(unchecked-set js/globalThis "import" (js/eval "(x) => import x"))
(def !last-ns (volatile! @sci/ns))
(defn- -eval-string [s]