Browse Source

update build setup to make babel work properly with flow

dev
Evan You 9 years ago
parent
commit
623bcc632c
  1. 8
      .babelrc
  2. 3
      package.json

8
.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"
]

3
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",

Loading…
Cancel
Save