lib/amd.js
function modulePathToId(path) {
    // We can only transform if there's no plugin used.
    if (path.indexOf('!') === -1) {
        // If it ends with ".js", chop it off.
        var extension = '.js'
        if (path.slice(-extension.length) === '.js') {
            path = path.slice(0, path.length - extension.length);
        }
    }
    return path;
}
function modulePathToId(path) {
    // We can only transform if there's no plugin used.
    if (path.indexOf('!') === -1) {
        // If it ends with ".js", chop it off.
        var extension = '.js'
        if (path.slice(-extension.length) === '.js') {
            path = path.slice(0, path.length - extension.length);
        }
    }
    return path;
}
function modulePathToId ( path ) { // We can only transform if there's no plugin used. if ( path . indexOf ( '!' ) === - 1 ) { // If it ends with ".js", chop it off. var extension = '.js' if ( path . slice ( - extension . length ) === '.js' ) { path = path . slice ( 0 , path . length - extension . length ) ; } } return path ; }
Convert a module path into a module ID.
Convert a module path into a module ID .