FIX THE BLOAT

This commit is contained in:
Michiel Borkent 2021-07-14 22:00:43 +02:00
parent 2932e24652
commit cdc4a4987d
2 changed files with 7 additions and 1 deletions

3
src/a1.clj Normal file
View file

@ -0,0 +1,3 @@
(ns a1
;; we need pprint loaded first, it patches pprint to not bloat the GraalVM binary
(:require [babashka.impl.pprint]))

View file

@ -2,6 +2,9 @@
{:no-doc true} {:no-doc true}
(:refer-clojure :exclude [error-handler]) (:refer-clojure :exclude [error-handler])
(:require (:require
;; we name this ns a01 to always have it on top and sorting won't mess with it
;; it loads patches
[a1]
[babashka.fs :as fs] [babashka.fs :as fs]
[babashka.impl.bencode :refer [bencode-namespace]] [babashka.impl.bencode :refer [bencode-namespace]]
[babashka.impl.cheshire :refer [cheshire-core-namespace]] [babashka.impl.cheshire :refer [cheshire-core-namespace]]