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

108
Visualizações
How to lazy load apps inside a library into another library in reactjs using creatre-react-app

I have an app which imports our custom libraries we created using create-react-app plugin.

However, we have imported library inside library too, so in this case we have a lib umai-settings.[hash] thats has crossed 1 MB size, and since using library we cant lazy load the pages/components in the lib.

Since build on the library needs a bundle file, and the lazy loaded chunks does not work while importing the app, and give Syntax Error unexpected token on lazy loaded lib routes.

enter image description here

In the below image you can see the app umai-settings.[hash], has two two apps venue-settings and team-management, which combining crosses 1 MB.

enter image description here

Moreover, we have already tried to compress and minify the code using webpack, and also performed tree shaking to reduce the size of the application.

So now we are considering if its possible to lazy load inside library using react lazy and suspense so that it further breaks down the chunks into smaller size. ?

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