support export default of anonymous functions and classes (#1954)
This commit is contained in:
@@ -2373,10 +2373,7 @@ function parse($TEXT, options) {
|
||||
}
|
||||
}
|
||||
|
||||
var is_definition =
|
||||
is("keyword", "var") || is("keyword", "let") || is("keyword", "const") ||
|
||||
is("keyword", "class") || is("keyword", "function");
|
||||
|
||||
var is_definition = is("keyword", "var") || is("keyword", "let") || is("keyword", "const");
|
||||
if (is_definition) {
|
||||
exported_definition = statement();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user