Browse Source

增加低版本浏览器对es6的支持

feature/feature-compatible
nesxy 7 years ago
parent
commit
1634f44f69
2 changed files with 5 additions and 1 deletions
  1. 3
      package.json
  2. 3
      src/main.js

3
package.json

@ -24,9 +24,10 @@
},
"devDependencies": {
"autoprefixer": "^6.7.2",
"babel-core": "^6.26.0",
"babel-core": "^5.8.38",
"babel-loader": "^6.2.10",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-2": "^6.24.1",
"babel-register": "^6.26.0",

3
src/main.js

@ -23,6 +23,9 @@ import "@/assets/styles/swiper.css";
//import wx from 'weixin-js-sdk'
//import axios from 'axios'
import "@/models/wxShare.js";
import 'babel-polyfill';
import promise from 'es6-promise';
promise.polyfill();
Vue.config.productionTip = false;
Vue.use(WechatPlugin);

Loading…
Cancel
Save