From beabae8d2bc04c9d1dadc4b2752a660fdda6904c Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 20 Jul 2014 18:06:19 +0100 Subject: [PATCH] Expose module.exports to tiddler modules Needed to incorporate an upcoming third-party library. @natecain - do you think this is OK from a compatibility perspective? --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index a87d0b08e..39f929609 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -615,7 +615,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) { tiddler = $tw.wiki.getTiddler(name) || $tw.wiki.getTiddler(name + ".js") || $tw.wiki.getTiddler(moduleName) || $tw.wiki.getTiddler(moduleName + ".js") , _exports = {}, sandbox = { - module: {}, + module: {exports: _exports}, //moduleInfo: moduleInfo, exports: _exports, console: console,