Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production bundle size #26

Open
matthewp opened this issue Feb 16, 2023 · 1 comment
Open

Production bundle size #26

matthewp opened this issue Feb 16, 2023 · 1 comment
Labels
question Further information is requested

Comments

@matthewp
Copy link

The last time I used Clojure things were a bit different (clj didn't even exist!) so perhaps I am doing this wrong.

I wanted to create a production bundle of electric-starter-app, so I copied :dev into another build named :prod, removed devtools and added :release { :compiler-options {:optimizations :advanced } } and ran npx shadow-cljs release prod

The main.js came out at 156kb gzipped. This is quite a bit larger than a normal ClojureScript app so I think I'm probably doing something wrong. Likely there are some dev-mode things being imported that is increasing the size, but I couldn't find anything.

Is this the expected bundle size?

@dustingetz
Copy link
Member

Hi @matthewp I don't think you did anything wrong. We haven't optimized the Electric macroexpansion size yet. We plan to work on this soon.

@dustingetz dustingetz added the question Further information is requested label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants