File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function emitTranspiledFiles(
1616 emitHost : EmitHost = ts . sys
1717) : OutputFile [ ] {
1818 const options = program . getCompilerOptions ( ) ;
19- let { outDir, luaLibImport } = options ;
19+ let { outDir, luaLibImport, luaBundle } = options ;
2020
2121 const rootDir = program . getCommonSourceDirectory ( ) ;
2222 outDir = outDir || rootDir ;
@@ -48,7 +48,7 @@ export function emitTranspiledFiles(
4848 }
4949 }
5050
51- if ( luaLibImport === LuaLibImportKind . Require || luaLibImport === LuaLibImportKind . Always ) {
51+ if ( ! luaBundle && ( luaLibImport === LuaLibImportKind . Require || luaLibImport === LuaLibImportKind . Always ) ) {
5252 if ( lualibContent === undefined ) {
5353 const lualibBundle = emitHost . readFile ( path . resolve ( __dirname , "../dist/lualib/lualib_bundle.lua" ) ) ;
5454 if ( lualibBundle !== undefined ) {
You can’t perform that action at this time.
0 commit comments