From 72190e84221555aeae9493bfa10abe397f984309 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 19 Dec 2024 17:12:25 +0100 Subject: [PATCH] fix import --- CHANGELOG.md | 4 ++-- src/scittle/core.cljs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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))