Update watcher and component gen functions
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import grabPageReactComponentString from "./grab-page-react-component-string";
|
||||
import grabTsxStringModule from "./grab-tsx-string-module";
|
||||
import { log } from "../../../utils/log";
|
||||
export default async function grabPageBundledReactComponent({ file_path, root_file_path, server_res, }) {
|
||||
try {
|
||||
let tsx = grabPageReactComponentString({
|
||||
@@ -21,6 +22,7 @@ export default async function grabPageBundledReactComponent({ file_path, root_fi
|
||||
};
|
||||
}
|
||||
catch (error) {
|
||||
log.error(`grabPageBundledReactComponent Error: ${error.message}`);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import grabRouteParams from "../../../utils/grab-route-params";
|
||||
import grabPageErrorComponent from "./grab-page-error-component";
|
||||
import grabPageBundledReactComponent from "./grab-page-bundled-react-component";
|
||||
import _ from "lodash";
|
||||
import { log } from "../../../utils/log";
|
||||
import grabRootFilePath from "./grab-root-file-path";
|
||||
import grabPageServerRes from "./grab-page-server-res";
|
||||
import grabPageServerPath from "./grab-page-server-path";
|
||||
import grabPageModules from "./grab-page-modules";
|
||||
import grabPageCombinedServerRes from "./grab-page-combined-server-res";
|
||||
class NotFoundError extends Error {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user