From a0db85b18c853f538fa8621ba697693ebfdd655e Mon Sep 17 00:00:00 2001 From: Rasmus Porsager Date: Sun, 14 Aug 2016 04:06:14 +0200 Subject: [PATCH] Temporary fix for broken bundles The current bundles were throwing "Stream is not a function". The proper place to fix this would probably be in the bundler, but for now this circumvents the issue. It appears the instantiated "Stream" will be cached and used inside the requestService that also requires './util/stream', instead of just what's inside './util/stream'. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ccad707c..102c4145 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,8 @@ "use strict" var log = console.error.bind(console) -var Stream = require("./util/stream")(log) +var StreamFactory = require("./util/stream") +var Stream = StreamFactory(log) var m = require("./render/hyperscript") var renderService = require("./render/render")(window) var requestService = require("./request/request")(window, log)