From f3a0b7d519b21224ac5f479f3a355ca360e8fb79 Mon Sep 17 00:00:00 2001 From: Andy Friesen Date: Tue, 1 Apr 2025 09:56:14 -0700 Subject: [PATCH] Update docs/abstract-module-paths-and-init-dot-luau.md Co-authored-by: Varun Saini <61795485+vrn-sn@users.noreply.github.com> --- docs/abstract-module-paths-and-init-dot-luau.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/abstract-module-paths-and-init-dot-luau.md b/docs/abstract-module-paths-and-init-dot-luau.md index 9cb925a..66a2613 100644 --- a/docs/abstract-module-paths-and-init-dot-luau.md +++ b/docs/abstract-module-paths-and-init-dot-luau.md @@ -85,7 +85,8 @@ path refers to a directory if it refers to a filesystem directory that lacks an More concretely, Luau will no longer consider relative requires from a package `init.luau` file to resolve relative to the script itself. It will instead -resolve relative to the script's parent, i.e. the folder containing the module. +resolve relative to the location of the abstract module it represents, i.e. the +location of its parent folder in a filesystem context. Secondly, we recognize an unfortunate side effect of this change: code within `package/init.luau` is forced to write `require('./package/dependency')` when it