MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / createModuleTableNode

Function createModuleTableNode

src/transpilation/bundle.ts:152–157  ·  view source on GitHub ↗
(fileChunks: SourceChunk[])

Source from the content-addressed store, hash-verified

150}
151
152function createModuleTableNode(fileChunks: SourceChunk[]): SourceNode {
153 const tableHead = "____modules = {\n";
154 const tableEnd = "}\n";
155
156 return joinSourceChunks([tableHead, ...fileChunks, tableEnd]);
157}
158
159type SourceChunk = string | SourceNode;
160

Callers 1

getBundleResultFunction · 0.85

Calls 1

joinSourceChunksFunction · 0.85

Tested by

no test coverage detected