From e7ecf5654e5d5f8c5e7c7c33f4fd54b9ec999304 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Tue, 24 Jan 2023 02:09:12 -0500 Subject: [PATCH] Add note about special env var for require --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d56c4f..cd54d25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - `require` now uses paths relative to the file instead of being relative to the current directory, which is consistent with almost all other languages but not original Lua / Luau - this is a breaking change but will allow for proper packaging of third-party modules and more in the future. + - **_NOTE:_** _If you still want to use the default Lua behavior instead of relative paths, set the environment variable `LUAU_PWD_REQUIRE` to `true`_ - Improved error message when an invalid file path is passed to `require` - Much improved error formatting and stack traces