Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add code splitting to reduce bundle size#1285

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 1 commit intomainfromsplitterm
May 4, 2022
Merged

Conversation

kylecarbs
Copy link
Member

This splits our pages to use separate JavaScript bundles. It
initially splits the terminal, which reduces our primary
bundle size by ~400KB.

We should do this for all pages, but that can come in a future
change. This leaves the loading page empty for now, which I
think is fine. None of our pages are large enough that the blank
screen temporarily would be concerning.

#761

This splits our pages to use separate JavaScript bundles. Itinitially splits the terminal, which reduces our primarybundle size by ~400KB.We should do this for all pages, but that can come in a futurechange. This leaves the loading page empty for now, which Ithink is fine. None of our pages are large enough that the blankscreen temporarily would be concerning.
@kylecarbskylecarbs self-assigned thisMay 4, 2022
@kylecarbskylecarbs requested a review froma team as acode ownerMay 4, 2022 15:16
@codecov
Copy link

codecovbot commentedMay 4, 2022
edited
Loading

Codecov Report

Merging#1285 (1bc0bd1) intomain (4c35b81) willdecrease coverage by0.18%.
The diff coverage is33.33%.

@@            Coverage Diff             @@##             main    #1285      +/-   ##==========================================- Coverage   66.29%   66.11%   -0.19%==========================================  Files         280      280                Lines       18389    18389                Branches      216      216              ==========================================- Hits        12191    12157      -34- Misses       4943     4969      +26- Partials     1255     1263       +8
FlagCoverage Δ
unittest-go-macos-latest53.58% <ø> (-0.11%)⬇️
unittest-go-postgres-65.05% <ø> (-0.14%)⬇️
unittest-go-ubuntu-latest55.86% <ø> (-0.19%)⬇️
unittest-go-windows-202251.88% <ø> (-0.13%)⬇️
unittest-js70.69% <33.33%> (ø)
Impacted FilesCoverage Δ
site/src/AppRouter.tsx0.00% <0.00%> (ø)
site/src/pages/TerminalPage/TerminalPage.tsx87.50% <100.00%> (ø)
peerbroker/dial.go77.04% <0.00%> (-6.56%)⬇️
codersdk/provisionerdaemons.go61.97% <0.00%> (-5.64%)⬇️
peer/conn.go77.88% <0.00%> (-3.69%)⬇️
peerbroker/listen.go84.03% <0.00%> (-3.37%)⬇️
coderd/workspaceagents.go56.04% <0.00%> (-2.80%)⬇️
peer/channel.go84.21% <0.00%> (-2.34%)⬇️
coderd/provisionerdaemons.go63.48% <0.00%> (-0.51%)⬇️
provisioner/echo/serve.go56.80% <0.00%> (ø)
... and2 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update4c35b81...1bc0bd1. Read thecomment docs.

Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

lgtm

kylecarbs reacted with thumbs up emoji
@kylecarbskylecarbs merged commitd7f6321 intomainMay 4, 2022
@kylecarbskylecarbs deleted the splitterm branchMay 4, 2022 19:24
@missknissmisskniss added this to theV2 Beta milestoneMay 15, 2022
kylecarbs added a commit that referenced this pull requestJun 10, 2022
This splits our pages to use separate JavaScript bundles. Itinitially splits the terminal, which reduces our primarybundle size by ~400KB.We should do this for all pages, but that can come in a futurechange. This leaves the loading page empty for now, which Ithink is fine. None of our pages are large enough that the blankscreen temporarily would be concerning.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

Assignees

@kylecarbskylecarbs

Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

3 participants
@kylecarbs@BrunoQuaresma@misskniss

[8]ページ先頭

©2009-2025 Movatter.jp