From 8262d142376c6c574c6849c0480efb98803baa6f Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 23 Nov 2017 11:50:04 +0800 Subject: [PATCH] Fix polyfill, #210 --- src/index.js | 2 +- src/polyfill.js | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 src/polyfill.js diff --git a/src/index.js b/src/index.js index ef2552e1..e6fd2f07 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 f09d5e86..00000000 --- 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); - }; -- GitLab