https://github.com/nextjournal/clojurescript-graaljs
GraalJS build target support for ClojureScript
https://github.com/nextjournal/clojurescript-graaljs
Last synced: 3 months ago
JSON representation
GraalJS build target support for ClojureScript
- Host: GitHub
- URL: https://github.com/nextjournal/clojurescript-graaljs
- Owner: nextjournal
- Created: 2020-04-04T17:00:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-24T17:24:28.000Z (over 5 years ago)
- Last Synced: 2025-09-30T16:52:17.829Z (3 months ago)
- Language: Clojure
- Size: 3.91 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraalJS Support for ClojureScript
This library provides support for building for GraalJS with `:optimizations :none`.
To use it, provide add these compiler options:
```clojure
{
,,,
:target :graaljs
:target-fn 'cljs-graaljs.core/target
}
```
## Example
For a complete example see `example/build.clj`. Once built, you can run that with the `js` tool bundled with GraalVM:
```bash
$ clj example/build.clj
$ js --jvm --js.java-package-globals=false --experimental-options example/out/example.js
```
## License
MIT