Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method default.fromStringWithSourceMap
import { default } from "https://deno.land/x/source_map@0.8.0-beta.1/lib/source-node.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.