From 13316b8dfcc93439a98b8bd464d619e485eebe52 Mon Sep 17 00:00:00 2001 From: James <5511220+Zamiell@users.noreply.github.com> Date: Thu, 14 Aug 2025 11:45:44 -0400 Subject: [PATCH 1/2] Update configuration.md --- docs/configuration.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 158f608..ab9d014 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -51,9 +51,10 @@ Most of the standard [TypeScript options](https://www.typescriptlang.org/docs/ha Some options do not apply to TypeScriptToLua and are ignored: -- `outFile` - use `luaBundle` instead. -- `importHelpers`, `noEmitHelpers` - use `luaLibImport` instead. -- `target`, `module` - it's only effect is limiting some features, so prefer to set it to `esnext`. If TypeScript requires you to specify different `module` type because you want to bundle your declarations with `outFile`, consider using [API Extractor](https://api-extractor.com/) instead. +- `outFile` - Use `luaBundle` instead. +- `importHelpers` / `noEmitHelpers` - Use `luaLibImport` instead. +- `target` - In normal TypeScript projects, this represents the JavaScript compilation target. TSTL users should always set this to `ESNext`, which allows your source code to use every [ECMAScript feature](https://github.com/sudheerj/ECMAScript-features). +- `module` - In normal TypeScript projects, this specifies the module system. TSTL users should omit this option, since it will default to `ES2015`. If TypeScript forces you to specify `module` because you want to bundle your declarations with `outFile`, consider using [API Extractor](https://api-extractor.com/) instead. ## Transformers From c9a8aa324f9f777998d33d6a24e40fc98966f8f7 Mon Sep 17 00:00:00 2001 From: James <5511220+Zamiell@users.noreply.github.com> Date: Thu, 14 Aug 2025 13:00:14 -0400 Subject: [PATCH 2/2] Update docs/configuration.md Co-authored-by: Perry van Wesel --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index ab9d014..d0db6f3 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -54,7 +54,7 @@ Some options do not apply to TypeScriptToLua and are ignored: - `outFile` - Use `luaBundle` instead. - `importHelpers` / `noEmitHelpers` - Use `luaLibImport` instead. - `target` - In normal TypeScript projects, this represents the JavaScript compilation target. TSTL users should always set this to `ESNext`, which allows your source code to use every [ECMAScript feature](https://github.com/sudheerj/ECMAScript-features). -- `module` - In normal TypeScript projects, this specifies the module system. TSTL users should omit this option, since it will default to `ES2015`. If TypeScript forces you to specify `module` because you want to bundle your declarations with `outFile`, consider using [API Extractor](https://api-extractor.com/) instead. +- `module` - In normal TypeScript projects, this specifies the module system. TSTL users should omit this option, since it will default to `ES2015`. ## Transformers