diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index e4101024..24889520 100755 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -23,7 +23,7 @@ const createLintingRule = () => ({ module.exports = { context: path.resolve(__dirname, '../'), entry: { - app: './src/main.js' + app: ['babel-polyfill', './src/main.js'] }, output: { path: config.build.assetsRoot, diff --git a/docs/.vuepress/dist b/docs/.vuepress/dist new file mode 160000 index 00000000..7597caa5 --- /dev/null +++ b/docs/.vuepress/dist @@ -0,0 +1 @@ +Subproject commit 7597caa5a7616923c73900fec4ee2fb421435f3d diff --git a/package.json b/package.json index f763e040..2bc29f84 100755 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@antv/data-set": "^0.8.5", "@antv/g2": "^3.0.4", "axios": "^0.17.1", + "babel-polyfill": "^6.26.0", "better-scroll": "^1.12.1", "clipboard-polyfill": "^2.4.1", "countup.js": "^1.9.3", diff --git a/src/main.js b/src/main.js index 89e7eec7..3bf4ae78 100755 --- a/src/main.js +++ b/src/main.js @@ -1,3 +1,5 @@ +import 'babel-polyfill' + import Vue from 'vue' import App from './App' import router from './router'