fix(babel): don't require babel-polyfill if it's already required

This commit is contained in:
Mahdi Dibaiee 2016-04-16 18:04:19 +04:30
parent c76eb0c64d
commit ef12125190

View File

@ -1,4 +1,6 @@
import 'babel-polyfill';
if (!window._babelPolyfill) {
require('babel-polyfill');
}
import API from './functions/api';
import webhook from './functions/webhook';
import poll from './functions/poll';