An open API service indexing awesome lists of open source software.

https://github.com/dnrovs/tstl-bundle-require-lualib

Require external LuaLib bundle when bundling TypeScriptToLua
https://github.com/dnrovs/tstl-bundle-require-lualib

Last synced: 4 months ago
JSON representation

Require external LuaLib bundle when bundling TypeScriptToLua

Awesome Lists containing this project

README

          

# TSTL Bundle Require LuaLib

Require external `lualib_bundle` instead of including it in the code when bundling with TypeScriptToLua.

## Example
tsconfig.json
```json
{
"compilerOptions": { },
"tstl": {
"luaBundle": "Main.lua",
"luaBundleEntry": "src/Main.ts",
"luaLibImport": "none",
"luaPlugins": [
{
"name": "tstl-bundle-require-lualib",

"luaLibName": "optional_custom_require_name"
}
]
}
}
```