Allow imports in declare module (#315)
* Allow imports in declare module {}
* Rename bodyElement to bodyNode
This commit is contained in:
@@ -1016,7 +1016,7 @@ pp.parseExportSpecifiers = function () {
|
||||
// Parses import declaration.
|
||||
|
||||
pp.parseImport = function (node) {
|
||||
this.next();
|
||||
this.eat(tt._import);
|
||||
|
||||
// import '...'
|
||||
if (this.match(tt.string)) {
|
||||
|
||||
Reference in New Issue
Block a user