class compilerEs::SourceMap

sys::Obj
  compilerEs::SourceMap

Source

add

This add(Str text, Loc genLoc, Loc srcLoc, Str? name := null)

Source

make

new make(CompilerSupport support)

Source

pack

static Void pack(File[] files, OutStream out, [Str:Obj]? options := null)

Source

Compile a list of pod JavaScript files into a single unified source map file. The list of files passed to this method should match exactly the list of files used to create the corresponding JavaScript FilePack. If the file is the standard pod JS file, then we will include an offset version of "{pod}.js.map" generated by the JavaScript compiler. Otherwise if the file is another JavaScript file (such as units.js) then we just add the appropiate offset.

The sourceRoot option may be passed in to replace "/dev/{podName}" as the root URI used to fetch source files from the server.

write

Void write(Int lineCount, OutStream out := Env.cur().out())

Source