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

325
Vistas
how to read and remove too many unused js code in chunk

enter image description here

My nextjs project calls the main page, and 98% of unused bytes exist in one chunk of chunks.

When I looked into the code, there was a red line marked on this type of code.

"use strict";
eval(...)

I'm not sure what that means. Does it mean that the unused code was imported and used?

I need your help and a keyword to find a clue.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

you're running your tests in a development environment. that's why you're shipping so much unused JS. to fix this run next build to generate an optimized bundle.

in production, if you want to figure out why a package was imported I suggest using bundle-analyzer.

as for what they are.

  • The eval() function evaluates JavaScript code represented as a string. source
  • "use strict"; Defines that JavaScript code should be executed in "strict mode". source
about 4 years ago · Juan Pablo Isaza Denunciar
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