Skip to content

Commit

Permalink
Make syntax-flow inherit from syntax-class-properties
Browse files Browse the repository at this point in the history
This is so we don't break if babel/babylon#158 lands.
  • Loading branch information
motiz88 committed Oct 14, 2016
1 parent 71790aa commit ce493e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-plugin-syntax-flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"keywords": [
"babel-plugin"
],
"dependencies": {},
"dependencies": {
"babel-plugin-syntax-class-properties": "^6.8.0"
},
"devDependencies": {}
}
2 changes: 2 additions & 0 deletions packages/babel-plugin-syntax-flow/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default function () {
return {
inherits: require("babel-plugin-syntax-class-properties"),

manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("flow");
}
Expand Down

0 comments on commit ce493e8

Please sign in to comment.