Sun, 26 Jul 2009 03:38:20 +0100
Fix to work with modules which call module(...)
squish.lua | file | annotate | diff | comparison | revisions |
--- a/squish.lua Sun Jul 26 01:26:42 2009 +0100 +++ b/squish.lua Sun Jul 26 03:38:20 2009 +0100 @@ -162,7 +162,7 @@ data, err = fetch.http(module.url:gsub("%?", module.path)); end if data then - f:write("package.preload['", modulename, "'] = (function ()\n"); + f:write("package.preload['", modulename, "'] = (function (...)\n"); f:write(data); f:write("end)\n"); if enable_debug then