Fix #99: make js/import work

This commit is contained in:
Michiel Borkent 2024-12-19 17:03:50 +01:00
parent 1b021e4d14
commit 223cf8c1b2
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,10 @@
<!-- - Create Github release with updated links from `doc/links.md` -->
<!-- - `bb gh-pages` -->
## v0.6.21 (2024-12-19)
- [#99](https://github.com/babashka/babashka/issues/99): make `js/import` work
## v0.6.20 (2024-11-24)
- [#55](https://github.com/babashka/babashka/issues/55): create gh-pages dir before using.

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]