packages/master-tasks/tasks/srcmap.js
function getNodeFromFiles(scriptFile, mapFile) {
    if (fs.existsSync(scriptFile) && fs.existsSync(mapFile)) {
        try {
            return SourceNode.fromStringWithSourceMap(
                getScriptFromFile(scriptFile),
                new SourceMapConsumer(getMapFromMapFile(mapFile))
            );
        } catch (error) {
            console.error('getNodeFromFiles() error: ' + error);
            return new SourceNode();
        }
    } else {
        return new SourceNode();
    }
}
function getNodeFromFiles(scriptFile, mapFile) {
    if (fs.existsSync(scriptFile) && fs.existsSync(mapFile)) {
        try {
            return SourceNode.fromStringWithSourceMap(
                getScriptFromFile(scriptFile),
                new SourceMapConsumer(getMapFromMapFile(mapFile))
            );
        } catch (error) {
            console.error('getNodeFromFiles() error: ' + error);
            return new SourceNode();
        }
    } else {
        return new SourceNode();
    }
}
function getNodeFromFiles ( scriptFile , mapFile ) { if ( fs . existsSync ( scriptFile ) && fs . existsSync ( mapFile ) ) { try { return SourceNode . fromStringWithSourceMap ( getScriptFromFile ( scriptFile ) , new SourceMapConsumer ( getMapFromMapFile ( mapFile ) ) ) ; } catch ( error ) { console . error ( 'getNodeFromFiles() error: ' + error ) ; return new SourceNode ( ) ; } } else { return new SourceNode ( ) ; } }
get sourceNode from script and map files
get sourceNode from script and map files