Handles ES3 default as identifier name

This commit is contained in:
Evan Sebastian
2016-05-24 05:42:11 +07:00
parent ebd4ce6e7a
commit f1ac06f30d
+3
View File
@@ -2809,6 +2809,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
for (const specifier of exportSpecifiers[name.text]) {
emitStart(specifier.name);
emitContainingModuleName(specifier);
if (languageVersion === ScriptTarget.ES3 && name.text === "default") {
write('["default"]');
}
write(".");
emitNodeWithCommentsAndWithoutSourcemap(specifier.name);
emitEnd(specifier.name);