vue - .babelrc

描述:bable-es2015以及babel本身组件在新版本要求的外部配置文件.

 1 {
 2   "presets": [
 3     ["env", {
 4       "modules": false,
 5       "targets": {
 6         "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
 7       }
 8     }],
 9     "stage-2"
10   ],
11   "plugins": ["transform-vue-jsx", "transform-runtime"]
12 }

 

具体请查看官网文档:https://babeljs.io/docs/en/options

你可能感兴趣的:(javascript)