♻️ Remove all usage of graalvm js runtime

And replace it with a commandline call to nodejs
for execute a custom svgo based command line script.
This commit is contained in:
Andrey Antukh 2024-10-22 17:11:03 +02:00
parent 15b33488c6
commit cc6e071f48
17 changed files with 576 additions and 40723 deletions

View file

@ -6,11 +6,11 @@
(ns app.renderer.svg
(:require
["svgo" :as svgo]
["xml-js" :as xml]
[app.browser :as bw]
[app.common.data :as d]
[app.common.logging :as l]
[app.common.svg :as svg]
[app.common.uri :as u]
[app.config :as cf]
[app.util.mime :as mime]
@ -319,7 +319,7 @@
result (str/replace result " " " ")
result (if (contains? cf/flags :exporter-svgo)
(svg/optimize result)
(svgo/optimize result svgo/defaultOptions)
result)]
;; (println "------- ORIGIN:")