Skip to content

Reducing the size of can-stache-element #94

Open
@matthewp

Description

@matthewp

can contains a lot of stuff that isn't always necessary, like can-query-logic and can-connect (and related packages). StacheElement can and should be an entry point to using canjs. We should work to making StacheElement as minimal size wise as possible.

I created a build in this branch: https://github.com/canjs/can-stache-element/tree/size

Here are the results:

no-min min gzip min+gzip
802.8kB 274kB 190kB 66.4kB

And here are the two 20 largest modules by size:

Module Bytes
[email protected]#reflections/shape/shape 40089
[email protected]#src/define 39669
[email protected]#can-stache-bindings 37603
[email protected]#reflections/observe/observe 31459
[email protected]#can-view-scope 31365
[email protected]#map/map 29452
[email protected]#can-construct 27324
[email protected]#can-bind 22192
[email protected]#can-dom-mutate 19285
[email protected]#src/mustache_core 18760
[email protected]#can-stache 18333
[email protected]#reflections/type/type 17677
[email protected]#can-view-parser 16909
[email protected]#behaviors 15681
[email protected]#src/expression 15252
[email protected]#helpers/core 14201
[email protected]#scope-key-data 13130
[email protected]#value/value 12651
[email protected]#lib/list 12477
[email protected]#can-stache-key 10946
[email protected]#can-observation 10542

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions