1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

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?
This commit is contained in:
Jermolene 2014-07-20 18:06:19 +01:00
parent e3dc00573d
commit beabae8d2b

View File

@ -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") , tiddler = $tw.wiki.getTiddler(name) || $tw.wiki.getTiddler(name + ".js") || $tw.wiki.getTiddler(moduleName) || $tw.wiki.getTiddler(moduleName + ".js") ,
_exports = {}, _exports = {},
sandbox = { sandbox = {
module: {}, module: {exports: _exports},
//moduleInfo: moduleInfo, //moduleInfo: moduleInfo,
exports: _exports, exports: _exports,
console: console, console: console,