This commit is contained in:
2026-09-22 16:01:25 +01:00
parent 1bf1b651db
commit 1c52617728
16 changed files with 166 additions and 43 deletions
+13
View File
@@ -28,6 +28,8 @@ export type DirNames = {
BUNX_BUNDLER_ERROR_EXIT_FILE: string;
BUNX_ERROR_LOGS_DIR: string;
BUNX_LOGS_DIR: string;
BUNDLER_CTX_MAP_JSON: string;
SSR_BUNDLER_CTX_MAP_JSON: string;
};
export default function grabDirNames(): DirNames {
@@ -84,6 +86,15 @@ export default function grabDirNames(): DirNames {
`${BUNX_ROOT_404_FILE_NAME}.tsx`,
);
const BUNDLER_CTX_MAP_JSON = path.join(
BUNX_CWD_DIR,
"bundler-ctx-map.json",
);
const SSR_BUNDLER_CTX_MAP_JSON = path.join(
BUNX_CWD_DIR,
"ssr-bundler-ctx-map.json",
);
return {
ROOT_DIR,
SRC_DIR,
@@ -112,6 +123,8 @@ export default function grabDirNames(): DirNames {
BUNX_BUNDLER_ERROR_EXIT_FILE,
BUNX_ERROR_LOGS_DIR,
BUNX_LOGS_DIR,
BUNDLER_CTX_MAP_JSON,
SSR_BUNDLER_CTX_MAP_JSON,
};
}