Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

109
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda