diff --git a/src/index.js b/src/index.js index ef2552e1eb..e6fd2f07b4 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,6 @@ +import 'babel-polyfill'; import dva from 'dva'; import 'moment/locale/zh-cn'; -import './polyfill'; import './g2'; import './rollbar'; // import browserHistory from 'history/createBrowserHistory'; diff --git a/src/polyfill.js b/src/polyfill.js deleted file mode 100644 index f09d5e86d8..0000000000 --- a/src/polyfill.js +++ /dev/null @@ -1,8 +0,0 @@ -import 'core-js/es6/map'; -import 'core-js/es6/set'; -import 'babel-polyfill'; - -global.requestAnimationFrame = - global.requestAnimationFrame || function requestAnimationFrame(callback) { - setTimeout(callback, 0); - };