Skip to content

Commit f1ac06f

Browse files
committed
Handles ES3 default as identifier name
1 parent ebd4ce6 commit f1ac06f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/compiler/emitter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,6 +2809,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28092809
for (const specifier of exportSpecifiers[name.text]) {
28102810
emitStart(specifier.name);
28112811
emitContainingModuleName(specifier);
2812+
if (languageVersion === ScriptTarget.ES3 && name.text === "default") {
2813+
write('["default"]');
2814+
}
28122815
write(".");
28132816
emitNodeWithCommentsAndWithoutSourcemap(specifier.name);
28142817
emitEnd(specifier.name);

0 commit comments

Comments
 (0)