Upgrade vite 6.x to 8.x (with vite-plugin-pwa 2.x)

Aberta
#24 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
72/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
typescript, vite

Direção de pesquisa

Start with the Vite and vite-plugin-pwa versions in package.json and the multi-page inputs and manualChunks settings in vite.config.ts. Read the Vite 8 and plugin 2 migration notes, then run npm install, npm run typecheck, and npm run build. Done when the build retains one shared Phaser chunk and a working precache, and the hub and games work offline after install.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

dependencies severity: low

Summary

Vite 6 is two majors behind the current release and will leave the security backport window when the next major ships. vite-plugin-pwa 2.x lists vite 8 as a peer, so the two are best taken together.

Where

  • package.json:21, package.json:22
  • vite.config.ts:27-34 (multi-page inputs and manualChunks)

Suggested fix

Move to vite ^8 and vite-plugin-pwa ^2, then retest the multi-page rollupOptions.input, the Phaser manual chunk and the generated service worker.

Acceptance criteria

  • npm run build output still has one shared Phaser chunk and a working precache
  • Hub and games work offline after install

Getting started

  • Relevant files: package.json, vite.config.ts
  • Run locally: npm install, then npm run dev
  • Checks: npm run typecheck and npm run build (there is no test suite yet)
  • Related docs: README.md

Filed by repo-audit/full-audit at b001f5d. Severity: low. Effort: M. audit-key: dependencies|package.json|vite-major

Linguagem predominante
TypeScript
Estrelas
3
Forks
3
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/GH-Arcade

Todas as issues de TMHSDigital/GH-Arcade

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.