modulePathIn

tcmts.cli.web.modulePathIn · #woo3xtuh · term · runs on the server

uses node:path

A component's module in the cache, from a lookup (.tsx when it uses JSX).

import type { Codebase } from "#codebase/tcmts/cli/codebase";
import type { Lookup } from "#codebase/tcmts/cli/web";
import { moduleFile } from "#codebase/tcmts/loader";
import path from "node:path";

export const modulePathIn = (cb: Codebase, look: Lookup, componentHash: string) =>
  path.join(cb.lay.cacheDir, moduleFile(componentHash, look))

uses

used by