Skip to content

Add string-require aliasing compatibility #33

@1ntervallo

Description

@1ntervallo

I usually have a pretty nested folder structure and requiring using "../../../../" gets quite annoying.

I would like for Azul to compile .luaurc aliases to normal paths when syncing for example:

local cool_package = require("@pkg/cool") -> require(game:GetService("ReplicatedStorage").Packages.cool)

And this would be the .luaurc file in this example:

{
"aliases": {
"pkg": "sync/ReplicatedStorage/Packages"
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions