Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

441
Visualizações
How to reduce bundle.js / main.[hash].js size in react js?

n my react app, when I run npm run build then lot of chunk files are created and also one main.[hash].js file and that main.[hash].js file size is ~138kb (attached screenshots below for reference) enter image description here

Due to this performance of my app is getting low as per PageSpeed test or LightHouse test (attached screenshots below for reference) and its in Reduced unused Javascript And in react app there's no such code which are unused

enter image description here

So how to reduce size of main.[hash].js file so that performance will increase ?

In this app I did not eject web-pack files so there no config file in this app also I have already use code splitting technique like lazy/suspence in all routes.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda