diff --git a/src/index.js b/src/index.js index ef2552e1eb6c8026e54ff9d9d4bda48aa38df8ab..e6fd2f07b43d0ffe556329584e5406fb0f1842d0 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 f09d5e86d8eae4feb4ca5b23d6bbbb8cb73f90bb..0000000000000000000000000000000000000000 --- 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); - };