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

129
Vistas
Purpose of JavaScript Source Map names array?

The JS source map spec contains an identifier array to which each mapping location can refere to.

{
   "version" : 3,
   "file": "out.js",
   "sourceRoot": "",
   "sources": ["foo.js", "bar.js"],
   "sourcesContent": [null, null],
   "names": ["src", "maps", "are", "fun"],
   "mappings": "A,AAAB;;ABCDE;"
}

The mappings array contains a VLQ encoded mapping of locations (column/row) from the minified source back to the original source file.

Why do I still need the names array since the mappings array already contain a mapping. Even when an identifier "foo" gets minified to to "f" we still know the position and the length of the identifier through the mappings array. So, the names array seems redundant for me or am I missing something?

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