diff --git a/.babelrc b/.babelrc index 872ccdfb..db22fcd7 100644 --- a/.babelrc +++ b/.babelrc @@ -1,16 +1,12 @@ { "env": { "development": { - "presets": ["es2015"] + "presets": ["es2015", "flow-vue"] }, "production": { - "presets": ["es2015-rollup-vue"] + "presets": ["es2015-rollup-vue", "flow-vue"] } }, - "plugins": [ - "syntax-flow", - "transform-flow-strip-types" - ], "ignore": [ "dist/*.js" ] diff --git a/package.json b/package.json index 87943c60..c77747b7 100644 --- a/package.json +++ b/package.json @@ -40,10 +40,9 @@ "babel-core": "6.8.x", "babel-eslint": "^6.0.4", "babel-loader": "6.2.x", - "babel-plugin-syntax-flow": "^6.8.0", - "babel-plugin-transform-flow-strip-types": "^6.8.0", "babel-preset-es2015": "6.6.x", "babel-preset-es2015-rollup-vue": "1.1.x", + "babel-preset-flow-vue": "^1.0.0", "chromedriver": "2.21.x", "cross-spawn": "2.2.x", "entities": "1.1.x",