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

Abierto
#7 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
bun, react, typescript, vite

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
1
Merge medio
3 d 3 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de isaaclins/taskboard

Todos los issues de isaaclins/taskboard

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.