From b49f03bb8b1bd70cfe56c29a353075a34c52f611 Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Mon, 15 Jul 2019 13:10:23 -0700 Subject: [PATCH] Update index.js for better js compatibility This file is not run through `babel` but it uses `const`. The other files that are run through babel replace `const` with `var`, so this is the only file that won't work in a browser that doesn't support `const`. For example, an iOS 8 device. --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 3563428..6eff0aa 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ // http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default -const lib = require("./build") -module.exports = lib.default +module.exports = require("./build").default