Skip to content

Production bundle size #26

@matthewp

Description

@matthewp

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions