From 8c68b734b89ef5732c224b493c79b9c61ccc29cf Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 22 Nov 2017 22:26:08 +0800 Subject: [PATCH] Add babel-polyfill --- package.json | 1 + src/polyfill.js | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index bfd2b9e5..e9c49e45 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 a3589599..f09d5e86 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) { -- GitLab