diff --git a/package.json b/package.json index bfd2b9e5c5bb479d5e6163079e98925c4b36bd39..e9c49e45571a73e95939244c686162b76c12823e 100755 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ }, "dependencies": { "antd": "^3.0.0-beta.1", + "babel-polyfill": "^6.26.0", "babel-runtime": "^6.9.2", "classnames": "^2.2.5", "core-js": "^2.5.1", diff --git a/src/polyfill.js b/src/polyfill.js index a35895996cceacf560559fd7c87dd49f1537c07d..f09d5e86d8eae4feb4ca5b23d6bbbb8cb73f90bb 100644 --- a/src/polyfill.js +++ b/src/polyfill.js @@ -1,5 +1,6 @@ import 'core-js/es6/map'; import 'core-js/es6/set'; +import 'babel-polyfill'; global.requestAnimationFrame = global.requestAnimationFrame || function requestAnimationFrame(callback) {