Skip to main content

DependencyUtils

Very inefficient search utility function to find dependencies organized in node_modules structure.

Functions

findDependency

DependencyUtils.findDependency(
requesterInstance,
moduleNamestring,
requestedReplicationTypeReplicationType
) → ModuleScript?

Iteratively searches for a dependency based upon packages and current modules using the node_modules dependency resolution algorithm.

Show raw api
{
    "functions": [
        {
            "name": "findDependency",
            "desc": "Iteratively searches for a dependency based upon packages and current modules using the node_modules\ndependency resolution algorithm.",
            "params": [
                {
                    "name": "requester",
                    "desc": "",
                    "lua_type": "Instance"
                },
                {
                    "name": "moduleName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "requestedReplicationType",
                    "desc": "",
                    "lua_type": "ReplicationType"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "ModuleScript?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 23,
                "path": "src/loader/src/Dependencies/DependencyUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "DependencyUtils",
    "desc": "Very inefficient search utility function to find dependencies\norganized in node_modules structure.",
    "source": {
        "line": 7,
        "path": "src/loader/src/Dependencies/DependencyUtils.lua"
    }
}