diff --git a/packages/babel-plugin-syntax-flow/package.json b/packages/babel-plugin-syntax-flow/package.json index 922c79791a4a1..26e881dd7d94d 100644 --- a/packages/babel-plugin-syntax-flow/package.json +++ b/packages/babel-plugin-syntax-flow/package.json @@ -8,6 +8,8 @@ "keywords": [ "babel-plugin" ], - "dependencies": {}, + "dependencies": { + "babel-plugin-syntax-class-properties": "^6.8.0" + }, "devDependencies": {} } diff --git a/packages/babel-plugin-syntax-flow/src/index.js b/packages/babel-plugin-syntax-flow/src/index.js index ac230f4a256a6..95dfc2e021db6 100644 --- a/packages/babel-plugin-syntax-flow/src/index.js +++ b/packages/babel-plugin-syntax-flow/src/index.js @@ -1,5 +1,7 @@ export default function () { return { + inherits: require("babel-plugin-syntax-class-properties"), + manipulateOptions(opts, parserOpts) { parserOpts.plugins.push("flow"); }