awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
mozilla avatar

mozilla/source-map

0
View on GitHub↗
3,728 stars·372 forks·JavaScript·19 views

Source Map

This project is a source map implementation library used for generating, parsing, and consuming source maps. It provides the functional components necessary to link transformed or minified code back to original source files, acting as a tool for code transformation debugging.

The library includes a source map composer for building trees of code snippets that automatically produce output strings and mappings. It also functions as a source map merger, providing mechanisms to chain and merge multiple maps to resolve multi-step code transformations across different build stages.

The project covers bidirectional coordinate translation, allowing positions to be mapped from generated source back to original files or from original source to generated output. It provides utilities for parsing encoded mapping strings, retrieving original source content, and iterating through mapping data for programmatic analysis.

Features

  • Minified Code Debugging - Translates runtime errors in minified or transformed code back to the original source files for troubleshooting.
  • Source-to-Generated Code Mappings - Translates positions in generated source back to the original file, line, column, and identifier name.
  • Coordinate Translation Utilities - Translates runtime error positions in generated code back to the original source file, line, and column.
  • Transformation Chaining - Implements the capability to rewrite mappings by applying existing source maps to resolve multi-step transformations.
  • Source Map Resolution - Provides a mechanism for chaining and merging multiple source maps to resolve multi-step code transformations.
  • Source Map Generators - Creates source maps by incrementally adding mappings between original source positions and generated output positions.
  • Map Merging - Provides mechanisms to merge multiple source maps to resolve combined code transformations.
  • Source Map Composers - Provides a tool for building trees of code snippets that automatically generate final output strings and associated source maps.
  • Source Map Implementation Libraries - Implements a full library for generating, parsing, and consuming source maps to link transformed code to original files.
  • Mapped String Concatenations - Tracks offsets during code concatenation to preserve source map metadata while producing the final output string.
  • Composite Source Node Trees - Builds a hierarchy of code fragments and metadata to automatically compute final positions and mappings.
  • Multi-Step Map Merging - Chains and merges multiple source maps to track code changes across several build stages or compilers.
  • VLQ Encodings - Uses Variable-Length Quantity encoding to compress coordinate data for efficient storage and transmission.
  • Source Map Chaining - Provides mechanisms to chain multiple mapping layers, treating one map's output as another's input.
  • Source Mapping Iterators - Traverses the internal coordinate list sequentially to translate every generated position back to its original source.
  • Original-to-Generated Mapping - Translates a specific line and column from an original source file to its corresponding position in the generated output.
  • Snippet Tracking - Provides utilities to automatically track source mappings while concatenating and interpolating generated code snippets.
  • Source Map Extractions - Extracts raw content of original source files directly from the parsed source map data.
  • Source Map Decoders - Decodes encoded mapping strings within a source map to determine relationships between generated and original positions.
  • Node Tree Composition - Offers a composer for building trees of code snippets that automatically generate output strings and associated source maps.
  • Source Mapping Iterators - Traverses every mapping between original and generated source positions using a specified sort order for analysis.

Star history

Star history chart for mozilla/source-mapStar history chart for mozilla/source-map

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does mozilla/source-map do?

This project is a source map implementation library used for generating, parsing, and consuming source maps. It provides the functional components necessary to link transformed or minified code back to original source files, acting as a tool for code transformation debugging.

What are the main features of mozilla/source-map?

The main features of mozilla/source-map are: Minified Code Debugging, Source-to-Generated Code Mappings, Coordinate Translation Utilities, Transformation Chaining, Source Map Resolution, Source Map Generators, Map Merging, Source Map Composers.

What are some open-source alternatives to mozilla/source-map?

Open-source alternatives to mozilla/source-map include: terser/terser — Terser is a JavaScript minifier and compressor designed to reduce file size through whitespace removal, symbol… rich-harris/magic-string — magic-string is a low-level JavaScript library designed for compilers and bundlers to perform source code… browserify/browserify-handbook — The browserify-handbook is a comprehensive documentation guide for Browserify, a CommonJS module bundler and… google/closure-compiler-js — Closure Compiler is a JavaScript build utility designed to transform, optimize, and validate source code for… mishoo/uglifyjs — UglifyJS is a tool for JavaScript code minification, AST manipulation, and source beautification. Its primary purpose… web-infra-dev/rspack — Rspack is a high-performance web bundler written in Rust that packages JavaScript and TypeScript for web applications.…

Open-source alternatives to Source Map

Similar open-source projects, ranked by how many features they share with Source Map.
  • rich-harris/magic-stringRich-Harris avatar

    Rich-Harris/magic-string

    2,668View on GitHub↗

    magic-string is a low-level JavaScript library designed for compilers and bundlers to perform source code transformations. It serves as a string transformation utility and source map manipulation library that allows for modifying text while automatically tracking character offsets. The library enables the modification of source code strings through insertions, replacements, and removals without losing the relationship to original source positions. It specifically provides mechanisms to generate mapping files that link transformed output text back to original source file coordinates. Capabili

    JavaScript
    View on GitHub↗2,668
  • terser/terserterser avatar

    terser/terser

    9,299View on GitHub↗

    Terser is a JavaScript minifier and compressor designed to reduce file size through whitespace removal, symbol mangling, and logic optimization for ES6+. It functions as a toolkit for minification, a code mangler for shortening variable and property names, and a dead code eliminator that evaluates constant expressions to remove unreachable logic. The project operates as an AST toolkit that parses JavaScript source into SpiderMonkey AST format for structural analysis. It generates source maps to link compressed production code back to the original source, ensuring that minified bundles remain

    JavaScript
    View on GitHub↗9,299
  • browserify/browserify-handbookbrowserify avatar

    browserify/browserify-handbook

    4,595View on GitHub↗

    The browserify-handbook is a comprehensive documentation guide for Browserify, a CommonJS module bundler and JavaScript build tool. It explains how to compile Node.js style modules into single JavaScript files for execution within web browsers. The guide covers the generation of universal module definition bundles that function across Node, AMD, and browser environments. It also details the use of browser-compatible polyfills for Node.js built-in modules to ensure cross-platform compatibility. The manual describes capabilities for source code transformation, frontend build automation, and we

    JavaScript
    View on GitHub↗4,595
  • mishoo/uglifyjsmishoo avatar

    mishoo/UglifyJS

    13,392View on GitHub↗

    UglifyJS is a tool for JavaScript code minification, AST manipulation, and source beautification. Its primary purpose is to reduce the file size of JavaScript source code by removing whitespace and shortening variable names to optimize frontend build assets. The project differentiates itself through its ability to programmatically analyze and transform code using abstract syntax trees. It performs constant folding analysis and conditional compilation to eliminate unreachable or redundant code, and it employs a multi-pass compression pipeline to maximize total file size reduction. The tool pr

    JavaScript
    View on GitHub↗13,392
See all 30 alternatives to Source Map→