mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-06 01:02:17 -08: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:
parent
e3dc00573d
commit
beabae8d2b
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue