fix import

This commit is contained in:
Michiel Borkent 2024-12-19 17:12:25 +01:00
parent 1cbca37342
commit 72190e8422
2 changed files with 3 additions and 3 deletions

View file

@ -5,11 +5,11 @@
<!-- To create a new NPM release: -->
<!-- - Run `bb npm-publish`: this will compile, bump patch version, create tag and and push to npm and Github -->
<!-- - `bb replace-version 0.6.20 0.6.21` -->
<!-- - `bb replace-version 0.6.21 0.6.22` -->
<!-- - Create Github release with updated links from `doc/links.md` -->
<!-- - `bb gh-pages` -->
## v0.6.21 (2024-12-19)
## v0.6.22 (2024-12-19)
- [#99](https://github.com/babashka/babashka/issues/99): make `js/import` work

View file

@ -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))