traefik / traefik/faency

[RFC] Implement build in chunks to improve import cost

Open
#290 2 comments 1 reaction 1 assignee View on GitHub

@paulocfjunior is already working on this.

Since Feb 15, 2022.

enhancement kind/proposal
Dominant language
TypeScript
Stars
41
Forks
16
Avg merge
3d 1h
Merged PRs (30d)
3

Description

RFC

Overview

Currently, our build generates one single file that embeds all components, fonts, and utils.
This affects the First Load JS size as it will load the entire library in the first render.

Proposal

Configure rollup to use manualChunks or another approach that splits the code in chunks that can be imported invididually.

Examples in other libraries

I haven't found yet an example

Who does this impact? Who is this for?

This will impact anyone that uses the lib by optimizing how the components are imported.

Additional context

Rollup documentation around code splitting and manual chunks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.