fix(visitor): module_dependencies shouldn't self require
This commit is contained in:
parent
6441a6a50b
commit
284b49898c
|
@ -53,11 +53,17 @@ end
|
|||
function Module_Dependencies.visit(node: Node, mod: Node, d: Dag)
|
||||
local all_types <const> = get_all_types_in_node(node)
|
||||
for _, type_name in ipairs(all_types) do
|
||||
if type_name == mod.name then
|
||||
goto continue
|
||||
end
|
||||
|
||||
local dependency = d.modules[type_name] or d.modules[utils.lowercase(type_name)]
|
||||
if dependency then
|
||||
mod.dependencies[dependency.name] = dependency.module_path
|
||||
replace_in_node_type(node, dependency.module_path, dependency.name)
|
||||
end
|
||||
|
||||
::continue::
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue