From ef12125190d4728d03abfd94be57fc14fc43a073 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sat, 16 Apr 2016 18:04:19 +0430 Subject: [PATCH] fix(babel): don't require babel-polyfill if it's already required --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 38fa73e..b27cda4 100644 --- a/src/index.js +++ b/src/index.js @@ -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';