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

Function createModulePath

src/transpilation/bundle.ts:11–12  ·  view source on GitHub ↗
(pathToResolve: string, program: ts.Program)

Source from the content-addressed store, hash-verified

9import { EmitFile, ProcessedFile } from "./utils";
10
11const createModulePath = (pathToResolve: string, program: ts.Program) =>
12 escapeString(formatPathToLuaPath(trimExtension(getEmitPathRelativeToOutDir(pathToResolve, program))));
13
14// Override `require` to read from ____modules table.
15function requireOverride(options: CompilerOptions) {

Callers 1

getBundleResultFunction · 0.85

Calls 4

escapeStringFunction · 0.90
formatPathToLuaPathFunction · 0.90
trimExtensionFunction · 0.90

Tested by

no test coverage detected