Split the web bundle (555 kB, Vite warns about it)

オープン
#7 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bun, react, typescript, vite

調査の方向性

Start by reading the web app entry point and Vite build configuration, then run npm run build to identify the 555 kB bundle and its dependencies. Trace the live view, card dialog, search, easyUI, and mock backend imports; the issue names web/src/api/mock.ts and fakepage.ts as demo-only. Done when the build has no size warning and the board works in demo mode and against a real server.

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue

npm run build produces one 555 kB JavaScript file (173 kB gzipped) and Vite warns about chunks over 500 kB.

The live view, the card dialog, search and the easyUI parts are only needed after the first screen. Loading them with React.lazy / dynamic import() should bring the first load well under the limit. The simulated backend (web/src/api/mock.ts, fakepage.ts) should only end up in the demo build.

Done when npm run build shows no size warning and the board still works in both npm run demo and against a real server.

主要言語
TypeScript
スター
0
フォーク
1
平均マージ
3日 3時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

isaaclins/taskboard のほかの issue

isaaclins/taskboard の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。