Update dev server
This commit is contained in:
@@ -10,6 +10,7 @@ import serverPostBuildFn from "../server-post-build-fn";
|
||||
import isDevelopment from "../../../utils/is-development";
|
||||
import { existsSync } from "fs";
|
||||
import grabDirNames from "../../../utils/grab-dir-names";
|
||||
import watcherEsbuildCTX from "../watcher-esbuild-ctx";
|
||||
|
||||
const { BUNX_BUNDLER_ERROR_EXIT_FILE } = grabDirNames();
|
||||
|
||||
@@ -197,6 +198,9 @@ export default async function grabPageComponent(
|
||||
} else {
|
||||
log.error(`Error Grabbing Page Component: ${error.message}`);
|
||||
log.error(`Page: ${passed_file_path || url?.pathname}`);
|
||||
|
||||
global.BUNEXT_PAGES_SRC_WATCHER?.close();
|
||||
watcherEsbuildCTX();
|
||||
}
|
||||
|
||||
return await grabPageErrorComponent({
|
||||
|
||||
Reference in New Issue
Block a user