enhance sourceMap (#4953)
This commit is contained in:
@@ -1935,7 +1935,11 @@ function OutputStream(options) {
|
||||
output.add_mapping(this.start);
|
||||
});
|
||||
|
||||
DEFMAP([ AST_DestructuredKeyVal, AST_ObjectProperty ], function(output) {
|
||||
DEFMAP([
|
||||
AST_ClassProperty,
|
||||
AST_DestructuredKeyVal,
|
||||
AST_ObjectProperty,
|
||||
], function(output) {
|
||||
if (typeof this.key == "string") output.add_mapping(this.start, this.key);
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user