mapcat
mapcat copied to clipboard
Mixing compiled and non-compiled sources.
Handle non-compiled sources mixed with compiled sources to generate the output JavaScript and source map.
This could be done by checking the extension of individual input files or when an input file is not recognized as a source map.
In the following example, input2 is a non-compiled JavaScript source:
var cat = require('mapcat').cat;
cat(['input1.map', 'input2.js', 'input3.map'], 'output.js', 'out.map');
+1