diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d34c2b..536da3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,11 @@ - + -## v0.6.21 (2024-12-19) +## v0.6.22 (2024-12-19) - [#99](https://github.com/babashka/babashka/issues/99): make `js/import` work diff --git a/src/scittle/core.cljs b/src/scittle/core.cljs index beaa32e..37ae25f 100644 --- a/src/scittle/core.cljs +++ b/src/scittle/core.cljs @@ -57,7 +57,7 @@ :ns-aliases {'clojure.pprint 'cljs.pprint} :features #{:scittle :cljs}})) -(unchecked-set js/globalThis "import" (js/eval "(x) => import x")) +(unchecked-set js/globalThis "import" (js/eval "(x) => import(x)")) (def !last-ns (volatile! @sci/ns))