Update watcher and component gen functions

This commit is contained in:
2026-04-04 20:02:36 +01:00
parent 48c25d2fb4
commit f34f8baa99
11 changed files with 15 additions and 20 deletions
@@ -1,4 +1,5 @@
import EJSON from "../../../utils/ejson";
import { log } from "../../../utils/log";
import pagePathTransform from "../../../utils/page-path-transform";
export default function grabPageReactComponentString({ file_path, root_file_path, server_res, }) {
try {
@@ -31,6 +32,7 @@ export default function grabPageReactComponentString({ file_path, root_file_path
return tsx;
}
catch (error) {
log.error(`grabPageReactComponentString Error: ${error.message}`);
return undefined;
}
}