Fixed bundler

Added :setOffset/:getOffset for Containers
This commit is contained in:
Robert Jelic
2025-02-28 10:18:17 +01:00
parent 5d88e34708
commit 85988be892
3 changed files with 4 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ local function bundle()
'local project = {}\n',
'local loadedProject = {}\n',
'local baseRequire = require\n',
'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end baseRequire(path) end\n'
'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end return baseRequire(path) end\n'
}
for _, file in ipairs(files) do