Skip to content

There should be a standard library method for 'get all the required modules for a given module' #776

@Vighnesh-V

Description

@Vighnesh-V

Right now, folks have to write their own version of this analysis that looks like:

function dependson(src : string)
    local mod = parse(src)
    local requires = query(mod, function(req). return resolveRequire(req.path) end)
   return requires
end

We could just provide this for folks to use out of the box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststdWork in the Luau standard library portion of the code

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions