check if es7.exportExtensions ie enabled in parser
This commit is contained in:
parent
0f7e010e3e
commit
41847162b1
@ -568,7 +568,7 @@ pp.parseExport = function(node) {
|
|||||||
this.parseExportFrom(node)
|
this.parseExportFrom(node)
|
||||||
return this.finishNode(node, "ExportAllDeclaration")
|
return this.finishNode(node, "ExportAllDeclaration")
|
||||||
}
|
}
|
||||||
} else if (this.isExportDefaultSpecifier()) {
|
} else if (this.options.features["es7.exportExtensions"] && this.isExportDefaultSpecifier()) {
|
||||||
let specifier = this.startNode()
|
let specifier = this.startNode()
|
||||||
specifier.exported = this.parseIdent(true)
|
specifier.exported = this.parseIdent(true)
|
||||||
node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]
|
node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user