Allow namespace exotic to be exported as default (#474)
This commit is contained in:
committed by
Daniel Tschinder
parent
482b8155a3
commit
17f2a2036c
@@ -816,7 +816,7 @@ pp.parseExport = function (node) {
|
||||
const specifier = this.startNode();
|
||||
this.next();
|
||||
if (this.hasPlugin("exportExtensions") && this.eatContextual("as")) {
|
||||
specifier.exported = this.parseIdentifier();
|
||||
specifier.exported = this.parseIdentifier(true);
|
||||
node.specifiers = [this.finishNode(specifier, "ExportNamespaceSpecifier")];
|
||||
this.parseExportSpecifiersMaybe(node);
|
||||
this.parseExportFrom(node, true);
|
||||
|
||||
Reference in New Issue
Block a user