code/4 - functions.js
function missingSource() {
        let preferredPath = path.basename(config.path.source)

        let source = obj.source
        source = source.replace(config.path.source, preferredPath)
        source = source.replace(config.path.dest, preferredPath)
        source = source.replace(path.basename(config.path.dest), preferredPath)

        if (source.toLowerCase().endsWith('.map')) {
            source = functions.removeExt(source)
        }

        if (shared.slash !== '/') {
            // we are on windows
            source = source.replace(/\\/g, '/')
        }

        return [source]
    }
function missingSource() {
        let preferredPath = path.basename(config.path.source)

        let source = obj.source
        source = source.replace(config.path.source, preferredPath)
        source = source.replace(config.path.dest, preferredPath)
        source = source.replace(path.basename(config.path.dest), preferredPath)

        if (source.toLowerCase().endsWith('.map')) {
            source = functions.removeExt(source)
        }

        if (shared.slash !== '/') {
            // we are on windows
            source = source.replace(/\\/g, '/')
        }

        return [source]
    }
function missingSource ( ) { let preferredPath = path . basename ( config . path . source ) let source = obj . source source = source . replace ( config . path . source , preferredPath ) source = source . replace ( config . path . dest , preferredPath ) source = source . replace ( path . basename ( config . path . dest ) , preferredPath ) if ( source . toLowerCase ( ) . endsWith ( '.map' ) ) { source = functions . removeExt ( source ) } if ( shared . slash !== '/' ) { // we are on windows source = source . replace ( / \\ / g , '/' ) } return [ source ] }
/*
Normalize source maps.
@param   {Object}  obj        Reusable object most likely created by functions.objFromSourceMap
@param   {Object}  sourceMap  Source map to normalize.
@return  {Object}             Normalized source map.
/ * Normalize source maps .