lambdaisland / lambdaisland/deja-fu
Reducing bundle size effects by disabling data printers
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 50
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Would it be possible to disables the custom data printer with e.g. a compiler constant? For instance, the re-frame-10x library lets you opt in to the library by setting a compiler constant. Maybe this library can do the same. That is to say, expose a constant for disabling the data printers. This should allow Google Closure to remove cljs.pprint from bundles.
I am requesting this because I noticed that data_printers requires cljs.pprint, which is nearly 100 kb in my bundle.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the data_printers entry point and trace its dependency on cljs.pprint and the existing compiler-constant configuration pattern. Done means the custom data printer can be disabled through a compiler constant and Google Closure can omit cljs.pprint from the resulting bundle; verify the bundle-size effect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- build-system, performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100