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

x/source_map/mod.js>SourceNode.fromStringWithSourceMap

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

Creates a SourceNode from generated code and a SourceMapConsumer.

Parameters

aGeneratedCode

The generated code

aSourceMapConsumer

The SourceMap for the generated code

aRelativePath

Optional. The path that relative sources in the SourceMapConsumer should be relative to.