source-list-map
API
Example
new SourceListMap()
new SourceListMap()
SourceListMap.prototype.add
SourceListMap.prototype.add
Append some stuff.
SourceListMap.prototype.prepend
SourceListMap.prototype.prepend
Prepend some stuff.
SourceListMap.prototype.toString()
SourceListMap.prototype.toString()
Get generated code.
SourceListMap.prototype.toStringWithSourceMap
SourceListMap.prototype.toStringWithSourceMap
Get generated code and SourceMap. options
can contains file
property which defines the file
property of the SourceMap.
SourceListMap.prototype.mapGeneratedCode
SourceListMap.prototype.mapGeneratedCode
Applies fn
to each generated code block (per line). The returned value is set as new generated code. Returns a new SourceListMap.
Removing and adding lines is supported. The SourceMap complexity will increase when doing this.
Test
License
Copyright (c) 2017 JS Foundation
MIT (http://www.opensource.org/licenses/mit-license.php)
Last updated