Finally fixxed i guess

This commit is contained in:
Robert Jelic
2025-02-18 20:02:40 +01:00
parent f29661e2ed
commit ad01f8c1cd
2 changed files with 3 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ if(minified)then
if(minified_elementDirectory==nil)then
error("Unable to find minified_elementDirectory please report this bug to our discord.")
end
for name,v in pairs(minfied_elementDirectory)do
for name,v in pairs(minified_elementDirectory)do
ElementManager._elements[name:gsub(".lua", "")] = {
class = nil,
plugins = {},

View File

@@ -21,8 +21,9 @@ local function bundle()
'local minified_elementDirectory = {}\n',
'local minified_pluginDirectory = {}\n',
'local project = {}\n',
'local loadedProject = {}\n',
'local baseRequire = require\n',
'require = function(path) return project[path..".lua"] or 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 baseRequire(path) end\n'
}
for _, file in ipairs(files) do