demo/typescript.js
function tryRenameExternalModule(moduleName) {
                if (currentSourceFile.renamedDependencies && ts.hasProperty(currentSourceFile.renamedDependencies, moduleName.text)) {
                    return "\"" + currentSourceFile.renamedDependencies[moduleName.text] + "\"";
                }
                return undefined;
            }
function tryRenameExternalModule(moduleName) {
                if (currentSourceFile.renamedDependencies && ts.hasProperty(currentSourceFile.renamedDependencies, moduleName.text)) {
                    return "\"" + currentSourceFile.renamedDependencies[moduleName.text] + "\"";
                }
                return undefined;
            }
/*
Some bundlers (SystemJS builder) sometimes want to rename dependencies.
Here we check if alternative name was provided for a given moduleName and return it if possible.