Initializes a new instance of the JsProcessor class, using the input file as content source for the merging.
A string with the file contents or a File object.
Context object used throughout mergings.
Gets the source map file generated by the merging.
Merges the input JavaScript file of this object, returning the merged file as result.
A file object, containing the results of the merging and all attributes pertaining to it.
Generated using TypeDoc
Represents the processor for transpiled JavaScript files.
It optimizes the script blocks, allowing statements with the same declaration to be merged.
First, the processor will look for TypeScript transpiled IIFE blocks:
var myModule; (function (myModule) {[body0]})(myModule || (myModule = {})); (function (myModule) {[body1]})(myModule || (myModule = {})); ... (function (myModule) {[bodyN]})(myModule || (myModule = {}));
Then, using merge it will optmize all blocks with the same module name:
var myModule; (function (myModule) {[body0;body1;...;bodyN]})(myModule || (myModule = {}));