Skip to content

Improve Build Times #2031

@ebkr

Description

@ebkr

Improve build times

Faster builds mean less pipeline usage, less wasted time, and more importantly a lower environmental impact

Quill

Quill.js is the library used for the text editor. Whilst it offers quite a lot of functionality, we don't use most of it as we don't need rich text editing.

stats.html

As can be seen by the above upload, Quill alone is over 12% of the entire JS build which feels insane. Dropping this should show quite a significant build time improvement.

Ecosystem schema

We can potentially look at moving this to the public folder to be served via URL. It's a large portion (at the time of writing, 14%) of the build and we only use it for referencing actual data.

ecosystemTypes is absolutely required at build time, but the actual data? Probably not.

Moment

Moment is much less of an impact, sitting at just over 4%. The thing is, we use Moment for exactly one line of code 💀

In fact, as part of the #2030 branch, we don't even use Moment. So we can just drop this once those changes go through.

Total savings

These three things account for 30% of the entire build. We can't lose the text editor entirely so there'll always be a portion of it taken up, but it shouldn't be anywhere near the size that it is.

I mean the entirety of all modals and code involved in Manager.vue only comes to 2.23% of the entire bundle and that's a lot of code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions