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}
(:refer-clojure :exclude [error-handler])
(: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.impl.bencode :refer [bencode-namespace]]
[babashka.impl.cheshire :refer [cheshire-core-namespace]]
@ -24,7 +27,7 @@
[babashka.impl.features :as features]
[babashka.impl.fs :refer [fs-namespace]]
[babashka.impl.logging :refer [timbre-namespace tools-logging-namespace
tools-logging-impl-namespace]]
tools-logging-impl-namespace]]
[babashka.impl.pods :as pods]
[babashka.impl.pprint :refer [pprint-namespace]]
[babashka.impl.process :refer [process-namespace]]