From 49e6e35f03852e1830377975ce0561d33d955d12 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 12 Apr 2015 20:13:54 +0930 Subject: [PATCH] Fix module.exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looks like you did a mass find/replace of ‘module’ to ‘component’, accidentally breaking module.exports --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index b8712c7e..ad1cd158 100644 --- a/mithril.js +++ b/mithril.js @@ -1139,5 +1139,5 @@ var m = (function app(window, undefined) { return m })(typeof window != "undefined" ? window : {}); -if (typeof component != "undefined" && component !== null && component.exports) component.exports = m; +if (typeof module != "undefined" && module !== null && module.exports) module.exports = m; else if (typeof define === "function" && define.amd) define(function() {return m});