typescript-to-lua
Advanced tools
Changelog
1.5.0
Array.from
and Array.of
beforeEmit
hook to plugins that runs after tstl is totally done, but before emitting the result.
import("./module").then(m => m.foo());
)lua51AllowTryCatchInAsyncAwait
to disable restrictions on try/catch in combination with async/await in 5.1 (default: false)noImplicitGlobalVariables
to disable tstl making variables global in non-module files.removeComments
tsconfig setting.obj.method!()
) would not pass the correct self parameter, causing runtime errors.npm link
) were not recognized as external dependencies by module resolution.loadstring
Changelog
1.4.0
beforeTransform
and afterPrint
"always"
option for the "lualibImport"
tsconfig key.Math.sign
^
instead of math.pow
, the latter was deprecated in 5.3null
or undefined
in tuples, as that is undefined behavior in the Lua spec and causes unexpected behaviorextension
, allowing to specify a different output file extensionfunction.apply(context)
breaking the transpiler if called with only one parameterx ? y : z
) leading to incorrect code