Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!