Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
feat: support object rest-spread (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebboyd authored and nchanged committed Oct 2, 2017
1 parent af58830 commit e130db2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"acorn-es7": "^0.1.0",
"acorn-es7-plugin": "^1.1.7",
"acorn-jsx": "^4.0.1",
"acorn-object-rest-spread": "^1.1.0",
"ansi": "^0.3.1",
"app-root-path": "^2.0.1",
"base64-img": "^1.0.3",
Expand Down Expand Up @@ -112,4 +113,4 @@
"url": "https://opencollective.com/fuse-box",
"logo": "https://opencollective.com/opencollective/logo.txt"
}
}
}
2 changes: 1 addition & 1 deletion src/analysis/FileAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function acornParse(contents, options?: any) {
sourceType: "module",
tolerant: true,
ecmaVersion: 8,
plugins: { es7: true, jsx: true, asyncawait: true },

This comment has been minimized.

Copy link
@znqlsx

znqlsx Nov 12, 2017

This comment has been minimized.

Copy link
@nchanged

nchanged Nov 12, 2017

Contributor

We have sorted that one.

plugins: {
jsx: true, objRestSpread: true
},

plugins: { es7: true, jsx: true, asyncawait: true, objectRestSpread: true },
jsx: { allowNamespacedObjects: true },
},
});
Expand Down

0 comments on commit e130db2

Please sign in to comment.