Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/source_map/mod.js>SourceMapGenerator#addMapping

Port of mozilla / source-map to deno.
Latest
method SourceMapGenerator.prototype.addMapping
import { SourceMapGenerator } from "https://deno.land/x/source_map@0.8.0-beta.1/mod.js";

Add a single mapping from original source line and column to the generated source's line and column for this source map being created. The mapping object should have the following properties:

  • generated: An object with the generated line and column positions.
  • original: An object with the original line and column positions.
  • source: The original source file (relative to the sourceRoot).
  • name: An optional original token name for this mapping.