Skip to content

Commit d129b3c

Browse files
committed
Move lualib_bundle chunk back to root
1 parent cf6fdff commit d129b3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/LuaPrinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class LuaPrinter {
164164
(luaLibImport === LuaLibImportKind.Require && luaLibFeatures.size > 0)
165165
) {
166166
// Require lualib bundle
167-
header += 'require(__TS__Resolve("<internal>/lualib/lualib_bundle"));\n';
167+
header += 'require(__TS__Resolve("<internal>/lualib_bundle"));\n';
168168
} else if (luaLibImport === LuaLibImportKind.Inline && luaLibFeatures.size > 0) {
169169
// Inline lualib features
170170
header += "-- Lua Library inline imports\n";

src/transpilation/transpilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class Transpilation {
7272
}
7373

7474
private resolveRequestToModule(issuer: string, request: string) {
75-
if (request === "<internal>/lualib/lualib_bundle") {
75+
if (request === "<internal>/lualib_bundle") {
7676
let module = this.modules.find(m => m.request === request);
7777
if (!module) {
7878
const source = new SourceNode(null, null, null, getLuaLibBundle(this.host));

0 commit comments

Comments
 (0)