return undefined if we are not renaming to ensure we get the correct text

This commit is contained in:
Mohamed Hegazy 2015-03-24 14:55:00 -07:00
parent d2ead15767
commit 515cdcdd78

View file

@ -11142,7 +11142,7 @@ module ts {
// If this is es6 or higher, just use the name of the export
// no need to qualify it.
if (languageVersion >= ScriptTarget.ES6) {
return symbolName;
return undefined;
}
else {
return "exports." + symbolName;