public class SourceMapWriter
extends java.lang.Object
Constructor and Description |
---|
SourceMapWriter(java.lang.String sourceRoot)
Create a new instance of the writer for a single map file.
|
Modifier and Type | Method and Description |
---|---|
void |
addMapping(SourceMapping mapping)
Adds a mapping for the given node.
|
void |
generate(java.lang.Appendable out)
https://sourcemaps.info/spec.html
|
public SourceMapWriter(@Nullable java.lang.String sourceRoot)
sourceRoot
- optional absolute or relative path to the sourcespublic void addMapping(SourceMapping mapping)
mapping
- the mappingpublic void generate(java.lang.Appendable out) throws java.io.IOException
out
- the targetjava.io.IOException
- if any I/O error occur