awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 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·2 vues

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.

Historique des stars

Graphique de l'historique des stars pour mozilla/source-mapGraphique de l'historique des stars pour mozilla/source-map

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Source Map

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Source Map.
  • terser/terserAvatar de terser

    terser/terser

    9,299Voir sur 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
    Voir sur GitHub↗9,299
  • rich-harris/magic-stringAvatar de Rich-Harris

    Rich-Harris/magic-string

    2,668Voir sur 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
    Voir sur GitHub↗2,668
  • browserify/browserify-handbookAvatar de browserify

    browserify/browserify-handbook

    4,595Voir sur 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
    Voir sur GitHub↗4,595
  • mishoo/uglifyjsAvatar de mishoo

    mishoo/UglifyJS

    13,392Voir sur 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
    Voir sur GitHub↗13,392
Voir les 30 alternatives à Source Map→

Questions fréquentes

Que fait mozilla/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.

Quelles sont les fonctionnalités principales de mozilla/source-map ?

Les fonctionnalités principales de mozilla/source-map sont : Minified Code Debugging, Source-to-Generated Code Mappings, Coordinate Translation Utilities, Transformation Chaining, Source Map Resolution, Source Map Generators, Map Merging, Source Map Composers.

Quelles sont les alternatives open-source à mozilla/source-map ?

Les alternatives open-source à mozilla/source-map incluent : rich-harris/magic-string — magic-string is a low-level JavaScript library designed for compilers and bundlers to perform source code… terser/terser — Terser is a JavaScript minifier and compressor designed to reduce file size through whitespace removal, symbol… browserify/browserify-handbook — The browserify-handbook is a comprehensive documentation guide for Browserify, a CommonJS module bundler and… 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.… istanbuljs/nyc — nyc is a JavaScript code coverage tool and command-line interface that instruments source files to track the execution…