mapsDir
uses node:path
Every build's chunks' source maps (<chunk>.map), kept apart from the assets so they're never served: for tcm to
read what a page's stack names (where an error was thrown), not for the browser.
import type { Codebase } from "#codebase/tcmts/cli/codebase"; import { appsDir } from "#codebase/tcmts/cli/web"; import path from "node:path"; export const mapsDir = (cb: Codebase) => path.join(appsDir(cb), "maps")