typescript-to-lua
Advanced tools
Changelog
1.13.0
"luaLibImport": "require-minimal"
configuration option. This will output a lualib bundle containing only the lualib functions used by your code. This might not work if you are including external tstl-generated Lua, for example from a npm package.+=
) with array length.Changelog
1.12.0
require
statements during dependency resolution. This should reduce the amount of false-positive matches of require statements: require statements in string literals or comments should no longer be detected by tstl. This means require statements in string literals or comments can survive the transpiler without causing a 'could not resolve lua sources' error or getting rewritten into nonsense.math.mod
for Lua 5.0 modulo operations.Changelog
1.11.0
--tstlVerbose
now prints more resolver output when failing to resolve Lua sources.Changelog
1.10.0
"types": ["@typescript-to-lua/language-extensions"]
in your tsconfig.json (instead of "typescript-to-lua/...").require
uses not being recognized my module resolution, leading to missing files in the output.Changelog
1.9.0
strictNullChecks
is enabled.)get()
type of ReadOnlyLuaMap
. It is now typed the same as LuaMap
, i.e. it can return undefined
.paths
without specifying baseUrl
.