mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Update require-by-string-aliases.md
This commit is contained in:
parent
d0b10b2d7d
commit
6148f9e61f
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ Luau itself currently supports a basic require-by-string syntax that allows for
|
||||||
|
|
||||||
#### Aliases
|
#### Aliases
|
||||||
|
|
||||||
Aliases can be used to bind an absolute or relative path to a convenient, case-sensitive name that can be required directly.
|
Aliases can be used to bind an absolute or relative path to a convenient, case-insensitive name that can be required directly.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
@ -34,7 +34,7 @@ Or even a sub-module:
|
||||||
local createElement = require("Roact/createElement")
|
local createElement = require("Roact/createElement")
|
||||||
```
|
```
|
||||||
|
|
||||||
Aliases are overrides. Whenever the first component of a path exactly matches a pre-defined alias, it will be replaced before the path is resolved to a file.
|
Aliases are overrides. Whenever the first component of a path exactly matches a pre-defined alias, it will be replaced before the path is resolved to a file. Alias names are also restricted to the charset `[A-Za-z0-9.-_]`
|
||||||
|
|
||||||
### Package management
|
### Package management
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue