Skip to content

Commit cdbc9cb

Browse files
committed
Add support for parsing object spread operator in SBG's jsparser
1 parent cf1bde7 commit cdbc9cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-app/build-tools/jsparser/js_parser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ function getFileAst(tsHelpersFilePath) {
132132
plugins: ["decorators"]
133133
});
134134

135+
135136
return resolve(ast);
136137
});
137138
});
@@ -219,7 +220,7 @@ var astFromFileContent = function (path, data, err) {
219220

220221
var ast = babelParser.parse(data.data, {
221222
minify: false,
222-
plugins: ["decorators"]
223+
plugins: ["decorators", "objectRestSpread"]
223224
});
224225
data.ast = ast;
225226
return resolve(data);

0 commit comments

Comments
 (0)