Skip to content

Commit

Permalink
Fix #99: make js/import work (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude authored Dec 19, 2024
1 parent 1b021e4 commit 2019b32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/scittle/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2019b32

Please sign in to comment.